Re: -Wall
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <ZaqXgRDsH3lchs48@vapier> |
On 19 Jan 2024 13:55, Corinna Vinschen wrote: > if you saw my today's pushes, you're aware that I only found a bug > because I used -Wall. I fixed the bug and a few less crucial warnings. > > I did NOT fix the warnings in code we took verbatim from some BSDs, > which often contain unused variables, or in some cases expressions which > are deemed to profit from extra paranthesis, e. g. > > if (a >= 0 ^ b == 0) > > For that reason, I'd like to suggest to add -Wall by default to the > build flags for newlib, just as it is already for ages in the Cygwin > tree. > > Anybody having a strong opinion, pro or contra? enabling -Wall by default sounds fine. if you wanted to include any -Werror, that would require more effort/tooling like putting it all behind a new flag like --enable-werror. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmWql4EACgkQQWM7n+g3 9YEHFQ//T4ANdN0F0/ap2w16KhgRTuKqeIvRnprSopzg1VtFYZTGi4m2q+UtR9iK +I9V/P0NR6U31QuYaqqCWJnUdWwIKIwsQmKjzl3OJZTCo4z68lBDcJziQm5uRRvH /+B6pOI8wbOP0qJ3QsbcauEsNDjymG511nqiz+H5vjJZcozd6DGrNNpHDKOE87VK mp7f9lILp5CbbJBQdHRRHvKRcy0fYVT2Tz3NNtKcuoqmstAnODZWXrpQ0tSJG9eA b5qKQEkDK2ZB/Z82/A3LUCe20y5DD9SoCL8Ya7vrsjKtWcDErSkK/hICtEmx4s45 V5hzCg1RapCUG3Rw8e/E/+wXiA7/0DVxWzRRPI2fIMuL2+03gwqEHqlnQBA968WQ 7cduxMvHN02T2I/EHC+QFHzfYjbifXKrRnSN8gWR7057soI5UcjIgbnx+gnleZgV jPf3GDOUOHu6jz/Dqtu6OoDp4MeSXVGd5onbzCaA9YOFOpkRnEzYQrlJOCk2F+TN eX7nBmUsKwYrLpAV3DZuCGEGMcwuNRutjluVi10DHTD3qcy01PRRHAnbC6Q8t4jT /o7UN39DtyGK8AZebjr+XJj/mVpRXtxdvEknPsnzZU5xXFBNNH2J1WxTl8wSuXfT urtuYYXmncPDL6W03f38fF0F82wDkmAq7MSm7OSvJs6g2FxRxrU= =G2w+ -----END PGP SIGNATURE-----