https://bugs.linaro.org/show_bug.cgi?id=1045
Bug ID: 1045
Summary: odp_generator is not C99 compliant
Product: OpenDataPlane
Version: 0.6
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: Examples
Assignee: [email protected]
Reporter: [email protected]
make CFLAGS=-std=c99 -k
make[2]: Entering directory '/home/mike/git/odp/example/generator'
CC odp_generator-odp_generator.o
odp_generator.c: In function âgen_send_threadâ:
odp_generator.c:387:4: error: implicit declaration of function âusleepâ
[-Werror=implicit-function-declaration]
usleep(args->appl.interval * 1000);
^
odp_generator.c:387:4: error: nested extern declaration of âusleepâ
[-Werror=nested-externs]
odp_generator.c: In function âparse_argsâ:
odp_generator.c:750:5: error: implicit declaration of function âstrtok_râ
[-Werror=implicit-function-declaration]
token = strtok_r(str, ",", &save);
^
odp_generator.c:750:5: error: nested extern declaration of âstrtok_râ
[-Werror=nested-externs]
odp_generator.c:750:11: error: assignment makes pointer from integer without a
cast [-Werror]
token = strtok_r(str, ",", &save);
^
odp_generator.c:768:11: error: assignment makes pointer from integer without a
cast [-Werror]
token = strtok_r(str, ",", &save);
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp