Browse Source

MT#55283 add -Wshadow

Change-Id: If827311cbbbba48b3f483a4e2a3fc1dc7a957e4e
pull/1675/head
Richard Fuchs 3 years ago
parent
commit
6ced263477
6 changed files with 9 additions and 3 deletions
  1. +1
    -0
      daemon/.ycm_extra_conf.py
  2. +2
    -1
      daemon/Makefile
  3. +1
    -0
      lib/.ycm_extra_conf.py
  4. +1
    -0
      recording-daemon/.ycm_extra_conf.py
  5. +2
    -1
      recording-daemon/Makefile
  6. +2
    -1
      t/Makefile

+ 1
- 0
daemon/.ycm_extra_conf.py View File

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


+ 2
- 1
daemon/Makefile View File

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


+ 1
- 0
lib/.ycm_extra_conf.py View File

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


+ 1
- 0
recording-daemon/.ycm_extra_conf.py View File

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


+ 2
- 1
recording-daemon/Makefile View File

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

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