PR c++/90875 - added -Wswitch-outside-range option
authorMatthew Beliveau <mbelivea@redhat.com>
Fri, 21 Jun 2019 17:50:29 +0000 (17:50 +0000)
committerMatthew Beliveau <mbelivea@gcc.gnu.org>
Fri, 21 Jun 2019 17:50:29 +0000 (17:50 +0000)
commitda9e9b571483537a617d08ce7f0da84435497053
tree55976f753683551efc49e3f8a7d93717cf059d6b
parent69352933301e0f67078fff8404b1eeb5c14d6b60
PR c++/90875 - added -Wswitch-outside-range option

* doc/invoke.texi (Wswitch-outside-range): Document.

* c.opt (Wswitch-outside-range): Added new option.
* c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.

* c-c++-common/Wswitch-outside-range-1.c: New test.
* c-c++-common/Wswitch-outside-range-2.c: New test.
* c-c++-common/Wswitch-outside-range-3.c: New test.
* c-c++-common/Wswitch-outside-range-4.c: New test.

From-SVN: r272559
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/c-family/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog