On August 24, 2018 2:13:24 PM PDT, Bruce Momjian <bruce@momjian.us> wrote:
>I started seeing the following compile failures in head today on
>current
>Debian Jessie using the default gcc version 4.9.2 (Debian
>4.9.2-10+deb8u1):
>
> postgres.c: In function ‘exec_parse_message’:
> postgres.c:1368:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numParams; i++)
> ^
> postgres.c:1368:3: note: use option -std=c99, -std=gnu99, -std=c11 or
>-std=gnu11 to compile your code
> postgres.c: In function ‘exec_bind_message’:
> postgres.c:1558:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numPFormats; i++)
> ^
> postgres.c:1652:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int paramno = 0; paramno < numParams; paramno++)
> ^
> postgres.c:1781:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numRFormats; i++)
> ^
> postgres.c: In function ‘errdetail_params’:
> postgres.c:2217:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int paramno = 0; paramno < params->numParams; paramno++)
> ^
> postgres.c: In function ‘exec_describe_statement_message’:
> postgres.c:2378:2: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < psrc->num_params; i++)
> ^
> postgres.c: In function ‘PostgresMain’:
> postgres.c:4174:7: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numParams; i++)
> ^
>
>Is this being worked on?
Do they persist after you do re-configure? If so, could you send your config.log?
Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.