On Thursday, 13 August 2015 at 09:35:12 pm +0200, Élie Roux wrote:
> > 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.
> 
> This seems too much to me... For me just changing the declaration in
> loop statements would be enough, other such declarations in new code
> wouldn't be detected by our compiler warnings, but TeXLive won't use
> Visual Studio 2010 forever...
> 
> What do you think?
> 
First, the background.  Switching to C89 requires us to eliminate the
following things from our code:

- designated initialization of structures
- mixed declarations and code
- for loop initial declaration
- BCPL-style comments
- enums with trailing commas

The first three are apparently mandated by VS2010.  Hopefully, VS2010
supports a spec that was 20 years old when it was released.

Second, my opinion.  How much we do depends on how much we want to be
part of TeX Live.  If we want to be part of TeX Live, then we need to
compile with their compilers, and the best way to enforce this is to go
to an old enough standard against which our compilers can validate our
code.  I would like to eliminate as much as possible (especially since
we are volunteers who have other life priorities), any scramble at the
point of the TeX Live deadline to get code into working shape,
compounded because we are then dependent on one of their developers
making time to vet our code.

My opinion would be different here *if* we had a developer who can check
our code against VS2010 at each of our releases, but we don't.

I'm willing to put the legwork in and refactor our code to C89
compliance if we truly want to be a part of TeX Live.  Once there, our
compilers will keep us from falling too far off the road.

For me, this also means that we have to stay this way until TeX Live
decides to use a more modern compiler (or until we can enlist a
developer who has VS2010 to check our code).

Henry

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

Répondre à