Re: [Linuxptp-devel] [PATCH v2] remove C99 style loop variable declarations

2023-07-25 Thread Richard Cochran
On Thu, Jun 22, 2023 at 10:47:54PM -0700, Jacob Keller wrote: > When building the tlv.c file, the following warning may occur when > operating in C89 mode: > > $make EXTRA_CFLAGS=-std=gnu89 > tlv.c: In function ‘mgt_post_recv’: > tlv.c:374:17: error: ‘for’ loop initial declarations are only

[Linuxptp-devel] [PATCH v2] remove C99 style loop variable declarations

2023-06-22 Thread Jacob Keller
When building the tlv.c file, the following warning may occur when operating in C89 mode: $make EXTRA_CFLAGS=-std=gnu89 tlv.c: In function ‘mgt_post_recv’: tlv.c:374:17: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 374 | for (int i = 0; i <