On 21/09/2023 21:43, Bruno Haible wrote:
Pádraig Brady wrote:
I was trying to use -Wpedantic to check for standards conformance,
where some code compilable on gcc 13 by default, is no longer compilable on gcc 
<= 10.

?? Do you mean, you want to use gcc 13 with some specific options, in order to
test whether gcc 10 can compile the package?

This is not going to work, because we use #if tests on __GNUC__ and
__GNUC_MINOR__ in dozens of places.

The only way to see if gcc 10 can compile the package is to use gcc 10.

Right. gcc 13 vs gcc 10 was just a specific example in this case.

I accept the point that a specific compiler (and flags)
should be presented as early as possible in the build process.

I was thinking more abstractly of adjusting the current
compiler to add extra constraints; -Wpedantic in this case.
It was a little surprising that this was ignored currently,
and the post was more informative/reference than identifying
a specific issue.

cheers,
Pádraig.

Reply via email to