From 4f514a53d6e2eb7fa2d3e001a20fec629e27f741 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 19 Feb 2015 16:45:32 -0800 Subject: [PATCH] build: enable more compiler warnings Summary: * Makefile (WARNING_FLAGS): Add -W and -Wextra, and at least for now, -Wno-unused-parameter. Without that latter one, there would be many errors/warnings about unused parameters. Test Plan: run these and ensure there is no warning: make clean && make make clean && USE_CLANG=1 make Reviewers: ljin, sdong, igor.sugak, igor Reviewed By: igor Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D33819 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 529c4a17f..d8ba31c92 100644 --- a/Makefile +++ b/Makefile @@ -124,7 +124,9 @@ install: [ ! -e $(SHARED) ] || install -C -m 644 $(SHARED) $(INSTALL_PATH)/lib #------------------------------------------------- -WARNING_FLAGS = -Wall -Werror -Wsign-compare -Wshadow +WARNING_FLAGS = -W -Wextra -Wall -Werror -Wsign-compare -Wshadow \ + -Wno-unused-parameter + CFLAGS += $(WARNING_FLAGS) -I. -I./include $(PLATFORM_CCFLAGS) $(OPT) CXXFLAGS += $(WARNING_FLAGS) -I. -I./include $(PLATFORM_CXXFLAGS) $(OPT) -Woverloaded-virtual -Wnon-virtual-dtor