|
|
|
@ -330,6 +330,12 @@ ifeq ($(HAS_WORKING_NO_MAYBE_UNINITIALIZED),true) |
|
|
|
|
W_NO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized
|
|
|
|
|
NO_W_NO_MAYBE_UNINITIALIZED=-Wmaybe-uninitialized
|
|
|
|
|
endif |
|
|
|
|
CHECK_NO_UNKNOWN_WARNING_OPTION_WORKS_CMD = $(CC) -std=c99 -Werror -Wno-unknown-warning-option -o $(TMPOUT) -c test/build/no-unknown-warning-option.c
|
|
|
|
|
HAS_WORKING_NO_UNKNOWN_WARNING_OPTION = $(shell $(CHECK_NO_UNKNOWN_WARNING_OPTION_WORKS_CMD) 2> /dev/null && echo true || echo false)
|
|
|
|
|
ifeq ($(HAS_WORKING_NO_UNKNOWN_WARNING_OPTION),true) |
|
|
|
|
W_NO_UNKNOWN_WARNING_OPTION=-Wno-unknown-warning-option
|
|
|
|
|
NO_W_NO_UNKNOWN_WARNING_OPTION=-Wunknown-warning-option
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
# The HOST compiler settings are used to compile the protoc plugins.
|
|
|
|
|
# In most cases, you won't have to change anything, but if you are
|
|
|
|
@ -348,7 +354,7 @@ CXXFLAGS += -stdlib=libc++ |
|
|
|
|
LDFLAGS += -framework CoreFoundation
|
|
|
|
|
endif |
|
|
|
|
CXXFLAGS += -Wnon-virtual-dtor
|
|
|
|
|
CPPFLAGS += -g -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-long-long -Wno-unused-parameter -Wno-deprecated-declarations -Wno-sign-conversion -Wno-shadow -Wno-conversion -Wno-implicit-fallthrough -Wno-sign-compare -Wno-missing-field-initializers -Wno-maybe-uninitialized -DPB_FIELD_32BIT -DOSATOMIC_USE_INLINED=1 -Ithird_party/nanopb -Ithird_party/upb -Isrc/core/ext/upb-generated
|
|
|
|
|
CPPFLAGS += -g -Wall -Wextra -Werror $(W_NO_UNKNOWN_WARNING_OPTION) -Wno-long-long -Wno-unused-parameter -Wno-deprecated-declarations -Wno-sign-conversion -Wno-shadow -Wno-conversion -Wno-implicit-fallthrough -Wno-sign-compare -Wno-missing-field-initializers -Wno-maybe-uninitialized -DPB_FIELD_32BIT -DOSATOMIC_USE_INLINED=1 -Ithird_party/nanopb -Ithird_party/upb -Isrc/core/ext/upb-generated
|
|
|
|
|
COREFLAGS += -fno-rtti -fno-exceptions
|
|
|
|
|
LDFLAGS += -g
|
|
|
|
|
|
|
|
|
|