On Thursday, 13 August 2015 at 07:04:54 pm +0200, Élie Roux wrote:
> > The best compromise I can come up with is to target std=gnu90 and enable
> > pedantic warnings.  In addition to the things indicated by the patch, we
> > would not be able to have trailing commas in enum declarations.
> 
> Sounds good!
> 
I played around a little more with this, and it seems that this
combination only does what we want in clang.  I think the only clean
solution that is likely to work as compilers develop is to really switch
to C89 or gnu89 in fully pendantic mode.

After studying all the warnings, it seems that, at least for our code,
in addition to the things requested by the patch, we will also need to
eliminate:

- BCPL-style comments
- the trailing commas in enum declarations

So it seems that the only thing the combination I thought would work
allowed us to do (in clang only) was to keep BCPL-style comments.  As
painful as it will be, I will eliminate them all tonight.

Henry

_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel

Répondre à