From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Compile failures today |
Date: | 2018-08-24 21:13:24 |
Message-ID: | 20180824211324.GE18798@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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?
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-08-24 21:15:03 | Re: Compile failures today |
Previous Message | Robert Haas | 2018-08-24 19:49:28 | Re: [HACKERS] Proposal to add work_mem option to postgres_fdw module |