[tex-live] portability issue in texmfmp.c
Martin Schröder
martin at oneiros.de
Sat Dec 30 14:59:37 CET 2006
2006/12/29, Jonathan Kew <jonathan_kew at sil.org>:
> I believe this will cause problems, because puts the declaration
> "poolpointer i;" after a statement. This is legal in C++ and C99, but
> not in more traditional C, and some current compilers will reject it.
> (gcc accepts it, though I suppose if one used the -ansi and perhaps -
> pedantic options, it might complain.)
I compile the sources with gcc and -std=c99 -Wall. Neither -ansi nor
-pedantic catch this case.
> Possible solutions include adding braces around the declaration and
> following for-loop, or moving the declaration to the beginning of the
> first #else in the function, so that it stays before any statements.
> (Though looks a little odd there, IMO.)
I'll add braces.
Best
Martin
More information about the tex-live
mailing list