https://bugs.linaro.org/show_bug.cgi?id=1050

            Bug ID: 1050
           Summary: odp_l2fwd is not C99 compiant
           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/l2fwd'
  CC       odp_l2fwd-odp_l2fwd.o
odp_l2fwd.c: In function ‘parse_args’:
odp_l2fwd.c:492:5: error: implicit declaration of function ‘strtok_r’
[-Werror=implicit-function-declaration]
     token = strtok_r(str, ",", &save);
     ^
odp_l2fwd.c:492:5: error: nested extern declaration of ‘strtok_r’
[-Werror=nested-externs]
odp_l2fwd.c:492:11: error: assignment makes pointer from integer without a cast
[-Werror]
     token = strtok_r(str, ",", &save);
           ^
odp_l2fwd.c:510:11: error: assignment makes pointer from integer without a cast
[-Werror]
     token = strtok_r(str, ",", &save);
           ^
cc1: all warnings being treated as errors

-- 
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

Reply via email to