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
This commit is contained in:
parent
4e3c3d8c6a
commit
5a6ad9d52a
4
Makefile
4
Makefile
@ -108,11 +108,9 @@ CFLAGS += -DHAVE_POWER8
|
|||||||
HAVE_POWER8=1
|
HAVE_POWER8=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# if we're compiling for release, compile without debug code (-DNDEBUG) and
|
# if we're compiling for release, compile without debug code (-DNDEBUG)
|
||||||
# don't treat warnings as errors
|
|
||||||
ifeq ($(DEBUG_LEVEL),0)
|
ifeq ($(DEBUG_LEVEL),0)
|
||||||
OPT += -DNDEBUG
|
OPT += -DNDEBUG
|
||||||
DISABLE_WARNING_AS_ERROR=1
|
|
||||||
|
|
||||||
ifneq ($(USE_RTTI), 1)
|
ifneq ($(USE_RTTI), 1)
|
||||||
CXXFLAGS += -fno-rtti
|
CXXFLAGS += -fno-rtti
|
||||||
|
Loading…
Reference in New Issue
Block a user