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

            Bug ID: 1048
           Summary: odp_timer test is not C99 compliant
           Product: OpenDataPlane
           Version: 0.6
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: Validation
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

make CFLAGS=-std=c99 -k

make[2]: Entering directory '/home/mike/git/odp/test/validation'
  CC       odp_timer.o
odp_timer.c: In function ‘worker_entrypoint’:
odp_timer.c:140:11: error: implicit declaration of function ‘rand_r’
[-Werror=implicit-function-declaration]
           (rand_r(&seed) % RANGE_MS)
           ^
odp_timer.c:140:11: error: nested extern declaration of ‘rand_r’
[-Werror=nested-externs]
odp_timer.c:206:3: error: implicit declaration of function ‘usleep’
[-Werror=implicit-function-declaration]
   if (usleep(1000/*1ms*/) < 0)
   ^
odp_timer.c:206:3: error: nested extern declaration of ‘usleep’
[-Werror=nested-externs]
cc1: all warnings being treated as errors

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to