From 5a6ad9d52a568e53e52c2b6b9d4d51a185b691d6 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Thu, 5 Oct 2017 12:32:55 -0700 Subject: [PATCH] release build treat warnings as errors Summary: fixing warnings is important, especially for release code. Closes https://github.com/facebook/rocksdb/pull/2971 Differential Revision: D5980596 Pulled By: ajkr fbshipit-source-id: 04f4ea3fb005dcda33d60342e4361e380bc4dfb1 --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 791ffc7a3..9769453c5 100644 --- a/Makefile +++ b/Makefile @@ -108,11 +108,9 @@ CFLAGS += -DHAVE_POWER8 HAVE_POWER8=1 endif -# if we're compiling for release, compile without debug code (-DNDEBUG) and -# don't treat warnings as errors +# if we're compiling for release, compile without debug code (-DNDEBUG) ifeq ($(DEBUG_LEVEL),0) OPT += -DNDEBUG -DISABLE_WARNING_AS_ERROR=1 ifneq ($(USE_RTTI), 1) CXXFLAGS += -fno-rtti