https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101385
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:f3922acfdfff1e426bd1238cf09eeb84332464c9 commit r12-3513-gf3922acfdfff1e426bd1238cf09eeb84332464c9 Author: Eric Botcazou <ebotca...@adacore.com> Date: Tue Sep 14 10:32:00 2021 +0200 Implement PR ada/101385 For consistency's sake with -Wall & -w, this makes -Werror imply -gnatwe. gcc/ada/ PR ada/101385 * doc/gnat_ugn/building_executable_programs_with_gnat.rst (-Wall): Minor fixes. (-w): Likewise. (-Werror): Document that it also sets -gnatwe by default. * gcc-interface/lang-specs.h (ada): Expand -gnatwe if -Werror is passed and move expansion of -gnatw switches to before -gnatez.