Browse Source

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 5 years ago
parent
commit
d3390bae32
5 changed files with 5 additions and 5 deletions
  1. +1
    -1
      daemon/Makefile
  2. +1
    -1
      debian/rules.modules
  3. +1
    -1
      iptables-extension/Makefile
  4. +1
    -1
      recording-daemon/Makefile
  5. +1
    -1
      t/Makefile

+ 1
- 1
daemon/Makefile View File

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


+ 1
- 1
debian/rules.modules View File

@ -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
- 1
iptables-extension/Makefile View File

@ -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
- 1
recording-daemon/Makefile View File

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


+ 1
- 1
t/Makefile View File

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