Re: [Linuxptp-users] Current Linuxptp not compiling on compilers without enforced std version
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2022-11-16 14:47:13
|
On Wed, Nov 16, 2022 at 01:54:52PM +0100, Jakub Raczyński wrote: > arm-linux-gcc -Wall -DVER=3.1-00176-ga115563-dirty -D_GNU_SOURCE -DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC -c -o tlv.o tlv.c > tlv.c: In function ‘mgt_post_recv’: > tlv.c:374:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode > for (int i = 0; i < umtn->actual_table_size; i++) { Yeah that snuck past the review. Local variables belong at top of function. Please submit patch to fix. Thanks, Richard |