X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=6710ede1b9dff3bcdaad5ffe839f0dbbd7bed32c;hb=7bfd1a56436684ab1bc0d8e3661d6df81d3c82ef;hp=2cc0c2a6803115eb74d55cfe60344b117785edf6;hpb=c2ec26b92809193a5126d34299abfe8df7877c0c;p=elogind.git diff --git a/Makefile b/Makefile index 2cc0c2a68..6710ede1b 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,8 @@ GCC_LIB := $(shell $(CC) -print-libgcc-file-name ) OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ then echo "-Os"; else echo "-O2" ; fi} -WARNINGS := -Wall -Wshadow -Wstrict-prototypes +# add -Wredundant-decls when libsysfs gets cleaned up +WARNINGS := -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations # Some nice architecture specific optimizations ifeq ($(strip $(TARGET_ARCH)),arm)