From 9d30a519f9b8fd37dc05a89e5ea13ca78e08ce16 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 2 Feb 2021 15:07:43 +0100 Subject: [PATCH] libusb/pts: add -Wswitch-default for gcc (ignored by clang) --- port/libusb/Makefile | 2 +- test/pts/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/port/libusb/Makefile b/port/libusb/Makefile index eeb82febc..52323c676 100644 --- a/port/libusb/Makefile +++ b/port/libusb/Makefile @@ -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 diff --git a/test/pts/Makefile b/test/pts/Makefile index 94ec2db04..42dfa001f 100644 --- a/test/pts/Makefile +++ b/test/pts/Makefile @@ -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