https://bugs.linaro.org/show_bug.cgi?id=2387
Bug ID: 2387
Summary: odp_schedule_sp does not compile with clang
Product: OpenDataPlane - linux- generic reference
Version: v1.10
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: ---
Component: Scheduler
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
make CC=clang gives the following error:
CC odp_schedule_sp.lo
odp_schedule_sp.c:420:39: error: variable 't1' is uninitialized when used here
[-Werror,-Wuninitialized]
if (odp_time_cmp(odp_time_local(), t1) < 0)
^~
odp_schedule_sp.c:387:3: note: variable 't1' is declared here
odp_time_t t1;
^
1 error generated.
Makefile:840: recipe for target 'odp_schedule_sp.lo' failed
make[1]: *** [odp_schedule_sp.lo] Error 1
t1 is actually indirectly initialized and GCC doesn't have a problem with the
construct, however it seems that clang is being stricter here. An alternate
init
strategy is needed to restore ODP clang support.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp