TT#111150 Enable -Wextra minus some of its warnings producing much noise

We should eventually try to reduce the amount of -Wno-* options, but for
now this is a net improvement.

Change-Id: I3bd03679acbc157c0d1b3c257a542e2eec0e5ee9
pull/1262/head
Guillem Jover 4 years ago
parent 6fc793845b
commit d3390bae32

@ -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)

@ -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

@ -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)\""

@ -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

@ -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

Loading…
Cancel
Save