enabled and fixed -Wshadow and -Wuseless-cast offences

This commit is contained in:
Gregory Pakosz
2018-11-06 14:56:18 +01:00
parent 6d73e7898e
commit 73eb7856dd
2 changed files with 13 additions and 15 deletions

View File

@ -45,8 +45,8 @@ buildir := $(realpath .)/build
binsubdir := $(platform)-$(architecture)
bindir := $(prefix)/bin/$(binsubdir)
CFLAGS := -O2 -g -Wall -pedantic -Werror -std=c99
CXXFLAGS := -O2 -g -Wall -pedantic -Werror
CFLAGS := -O2 -g -Wall -pedantic -Werror -Wshadow -std=c99
CXXFLAGS := -O2 -g -Wall -pedantic -Werror -Wshadow -Wuseless-cast
ifeq ($(platform),linux)
LDFLAGS += -ldl