https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118636
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |documentation --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this is just a documentation improvement needed here. -w and -Werror are not designed to be passed on to the linker and for the compiler. For the GNU bfd based linker, if you want warnings turned into errors you need to use the --fatal-warnings option (wrapped like -Wl,--fatal-warnings); I have not looked into what options other linkers accept either. Also There is no way to supress linker warnings either.