diff --git a/daemon/Makefile b/daemon/Makefile index 841aef72f..895caba6b 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -4,7 +4,7 @@ with_iptables_option ?= yes with_transcoding ?= yes -CFLAGS?= -g -Wall -Wstrict-prototypes +CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes CFLAGS+= -pthread -fno-strict-aliasing CFLAGS+= -std=c99 CFLAGS+= $(shell pkg-config --cflags glib-2.0) diff --git a/debian/rules.modules b/debian/rules.modules index da4b6e10f..2566c8024 100644 --- a/debian/rules.modules +++ b/debian/rules.modules @@ -3,7 +3,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -CFLAGS ?= -Wall -Wstrict-prototypes -g +CFLAGS ?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 diff --git a/iptables-extension/Makefile b/iptables-extension/Makefile index 6b6ea0c0c..667b061d5 100644 --- a/iptables-extension/Makefile +++ b/iptables-extension/Makefile @@ -1,5 +1,5 @@ CC?=gcc -CFLAGS ?= -O2 -Wall -Wstrict-prototypes +CFLAGS ?= -O2 -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes CFLAGS += -shared -fPIC ifneq ($(RTPENGINE_VERSION),) CFLAGS += -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\"" diff --git a/recording-daemon/Makefile b/recording-daemon/Makefile index b0e514510..8882f3fd6 100644 --- a/recording-daemon/Makefile +++ b/recording-daemon/Makefile @@ -1,6 +1,6 @@ TARGET= rtpengine-recording -CFLAGS?= -g -Wall -Wstrict-prototypes +CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes CFLAGS+= -pthread -I. -I../lib/ -I../kernel-module/ CFLAGS+= -std=c99 -fno-strict-aliasing CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE diff --git a/t/Makefile b/t/Makefile index c1d2e9a7c..ec4781d85 100644 --- a/t/Makefile +++ b/t/Makefile @@ -2,7 +2,7 @@ TARGET= all-tests with_transcoding ?= yes -CFLAGS?= -g -Wall -Wstrict-prototypes +CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes PRELOAD_CFLAGS := $(CFLAGS) CFLAGS+= -pthread -fno-strict-aliasing CFLAGS+= -std=c99