MT#55283 add -Wshadow

Change-Id: If827311cbbbba48b3f483a4e2a3fc1dc7a957e4e
pull/1675/head
Richard Fuchs 2 years ago
parent b0ac243c17
commit 6ced263477

@ -24,6 +24,7 @@ flags = [
'-g',
'-Wall',
'-Wstrict-prototypes',
'-Wshadow',
'-pthread',
'-fno-strict-aliasing',
'-I/usr/include/glib-2.0',

@ -4,7 +4,8 @@ with_iptables_option ?= yes
with_transcoding ?= yes
CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type
CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \
-Wshadow
CFLAGS+= -pthread -fno-strict-aliasing
CFLAGS+= -std=c99
CFLAGS+= $(shell pkg-config --cflags glib-2.0)

@ -24,6 +24,7 @@ flags = [
'-g',
'-Wall',
'-Wstrict-prototypes',
'-Wshadow',
'-pthread',
'-fno-strict-aliasing',
'-I/usr/include/glib-2.0',

@ -15,6 +15,7 @@ flags = [
'-g',
'-Wall',
'-Wstrict-prototypes',
'-Wshadow',
'-pthread',
'-fno-strict-aliasing',
'-I/usr/include/glib-2.0',

@ -1,6 +1,7 @@
TARGET= rtpengine-recording
CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type
CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \
-Wshadow
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,8 @@ TARGET= all-tests
with_transcoding ?= yes
CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type
CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \
-Wshadow
PRELOAD_CFLAGS := $(CFLAGS)
CFLAGS+= -pthread -fno-strict-aliasing
CFLAGS+= -std=c99

Loading…
Cancel
Save