aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Larson <bklarson@gmail.com>2017-07-24 11:48:55 -0500
committerBrad Larson <bklarson@gmail.com>2017-07-24 11:51:47 -0500
commit0d9a34c7b2c66ba324cdbe620a6013b037be3b5d (patch)
tree9e552bad6d08d6dddb5e2cc68aab7609c9258cfd
parenteef2edcb8432dea32fe9d62e3f8f5d82677d71fd (diff)
downloadprotobuf-0d9a34c7b2c66ba324cdbe620a6013b037be3b5d.tar.gz
protobuf-0d9a34c7b2c66ba324cdbe620a6013b037be3b5d.tar.bz2
protobuf-0d9a34c7b2c66ba324cdbe620a6013b037be3b5d.zip
Add -Werror=missing-declarations to test builds
Treat missing declarations as an error for test builds, to prevent future updates which add functions without properly declaring them. This will prevent broken builds in more restrictive build environments.
-rw-r--r--src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 754401a1..18529dc8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -925,7 +925,7 @@ no_warning_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
../gmock/gtest/lib/libgtest_main.la
no_warning_test_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include
no_warning_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF) \
- -Wall -Wconversion -Werror
+ -Wall -Wconversion -Werror -Werror=missing-declarations
nodist_no_warning_test_SOURCES = no_warning_test.cc $(protoc_outputs)
TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \