From 5f6e1f0fe74bc01878d80531a91c39df9dfaa62a Mon Sep 17 00:00:00 2001 From: "ivan.penkov@gmail.com" Date: Mon, 2 Jul 2012 22:55:57 +0000 Subject: Fixing various compiler warnings and applying minor tweaks to allow running of the mojority of breakpad unittests in Google. http://breakpad.appspot.com/399002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@978 4c0a9323-5329-0410-9bdc-e9ce6186880e --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 53b50831..b6270ad8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,6 +33,16 @@ # This allows #includes to be relative to src/ AM_CPPFLAGS = -I$(top_srcdir)/src +if GCC +# These are good warnings to be treated as errors +AM_CXXFLAGS = \ + -Werror=non-virtual-dtor \ + -Werror=vla \ + -Werror=unused-variable \ + -Werror=missing-braces \ + -Werror=overloaded-virtual +endif + # Specify include paths for ac macros ACLOCAL_AMFLAGS = -I m4 @@ -294,6 +304,7 @@ src_client_linux_linux_client_unittest_SOURCES = \ src/client/linux/minidump_writer/linux_core_dumper_unittest.cc \ src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc \ src/client/linux/minidump_writer/minidump_writer_unittest.cc \ + src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc \ src/common/linux/linux_libc_support_unittest.cc \ src/common/linux/tests/crash_generator.cc \ src/common/memory_unittest.cc \ -- cgit v1.2.1