1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-29 22:28:02 +02:00

Remove -Wswitch-enum compiler option.

The -Wswitch option included in -Wall provides the same level of coverage and allows enum options to be grouped into default.
This commit is contained in:
David Steele
2019-05-15 12:55:08 -04:00
parent 53f6232264
commit 5bba72b874
5 changed files with 15 additions and 24 deletions

View File

@@ -393,7 +393,7 @@ sub run
# Determine which warnings are available
my $strWarningFlags =
'-Werror -Wfatal-errors -Wall -Wextra -Wwrite-strings -Wswitch-enum -Wconversion -Wformat=2' .
'-Werror -Wfatal-errors -Wall -Wextra -Wwrite-strings -Wconversion -Wformat=2' .
' -Wformat-nonliteral -Wstrict-prototypes -Wpointer-arith -Wvla' .
($self->{oTest}->{&TEST_VM} eq VM_U16 || $self->{oTest}->{&TEST_VM} eq VM_U18 ?
' -Wformat-signedness' : '') .