Use "-std=gnu99" by default - #221
Conversation
|
Thanks for the contribution! In my understanding, this mainly helps older compilers that don't default to C99 already - so I think that generally sounds good. And per my reading of the Postgres mailing list archives, upstream requires C99 since Postgres 12, so we're good in that regard. That said, I do wonder why |
|
I happened to notice the title of this PR today, and was curious why gnu99 was suggested. Turns out the explanation for these errors is that Adding In addition, So, everything builds if you add |
I get the following error on centos7


get another error as follows, if set -std=c99
it will be ok, if set -std=gnu99.
so i think that it should use "-std=gnu99" by default.
Related question: #169