Added more warnings, fixed one of them by scoping a variable

This commit is contained in:
NHOrus 2018-03-08 14:39:24 +03:00
parent d51238481a
commit 7f241960a5
2 changed files with 15 additions and 8 deletions

View file

@ -105,6 +105,11 @@ linty: CCFLAGS += -Wstrict-prototypes
linty: CCFLAGS += -Wmissing-prototypes
linty: CCFLAGS += -Wmissing-declarations
linty: CCFLAGS += -Wshadow
linty: CCFLAGS += -Wduplicated-cond
linty: CCFLAGS += -Wduplicated-branches
linty: CCFLAGS += -Wlogical-op
linty: CCFLAGS += -Wnull-dereference
linty: CCFLAGS += -Wjump-misses-init
linty: CCFLAGS += -Wfloat-equal
linty: CCFLAGS += -Wcast-align
linty: CCFLAGS += -Wwrite-strings