From 79112159f8f87efb5aa6fc98def89f4cd50545e8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 18 Mar 2013 17:04:14 +0100 Subject: disable some bogus warnings for LLVM/Clang * -Wmismatched-tags does not appear to exist on GCC: but we need to be able to refer to classes with both struct and class keywords because of the BSD data types * -Wchar-subscripts exists on GCC and may or may not be in -Wall. We disable it since we use character literals as subscripts - they are actually of type char in C++, in contrast to C where they are of type int. --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 41bc7cf..edd09d1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ include $(top_srcdir)/bootstrap.am AM_CFLAGS = -Wall -std=c99 -AM_CXXFLAGS = -Wall +AM_CXXFLAGS = -Wall -Wno-mismatched-tags -Wno-char-subscripts AM_CPPFLAGS = -D'DEFAULT_SCITECOPATH="@DEFAULT_SCITECOPATH@"' if NEED_COMPAT AM_CPPFLAGS += -I@top_srcdir@/compat -- cgit v1.2.3