Torbjörn Granlund <t...@gmplib.org> writes: > The language accepted by -Wall -Werror ain't C. Unfortunately, GMP and > its configure snippets are written in C.
I've always liked gcc -Wall. I think it adheres to its design to warn only about things that (1) are prone to be errors, and (2) in the case that they aren't errors, are easy to clarify in a way that makes the compiler stop warning about them. Use of -Werror, on the other hand, is something that I can't generally recommend. Imposing it on library users by default is certainly a bad idea. Using it when compiling tests that are part of configure is almost sure to break. But it could make sense to enable in certain nightly builds with known compilers, if one has the ambition that the code should build without (certain) warnings in that configuration, and stay that way. Regards, /Niels -- Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677. Internet email is subject to wholesale government surveillance. _______________________________________________ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs