libusb/pts: add -Wswitch-default for gcc (ignored by clang)

This commit is contained in:
Matthias Ringwald 2021-02-02 15:07:43 +01:00
parent 298c2fec55
commit 9d30a519f9
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ COMMON += btstack_audio_portaudio.c btstack_chipset_zephyr.c rijndael.c
include ${BTSTACK_ROOT}/example/Makefile.inc
CFLAGS += -g -std=c99 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-parameter -Wredundant-decls -Wsign-compare
CFLAGS += -g -std=c99 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-parameter -Wredundant-decls -Wsign-compare -Wswitch-default
# CFLAGS += -Werror
# CFLAGS += -pedantic

View File

@ -91,7 +91,7 @@ include ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
include ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
include ${BTSTACK_ROOT}/src/ble/gatt-service/Makefile.inc
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-variable -Wunused-parameter
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-variable -Wunused-parameter -Wswitch-default
CFLAGS += -D ENABLE_TESTING_SUPPORT
CFLAGS += -D ENABLE_LE_SIGNED_WRITE
CFLAGS += -fsanitize=address -fno-omit-frame-pointer