diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-18 22:56:34 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-18 22:56:34 +0100 |
commit | ace94503b4572d854ae326273a3ecdc37d978400 (patch) | |
tree | 615d475dc268323a40eab8849a21445a0f08eddb /src | |
parent | 2af7a570fb52a2e8aff02f3a2f39b38dd096d373 (diff) | |
download | sciteco-ace94503b4572d854ae326273a3ecdc37d978400.tar.gz |
add check for CLang: use clang-specific warnings only when compiling with CLang
* fixes gcc-4.4 which does not have -Wno-mismatched-tags and no -Wunknown-warning
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 50ef424..d068856 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,11 @@ include $(top_srcdir)/bootstrap.am AM_CFLAGS = -Wall -std=c99 -AM_CXXFLAGS = -Wall -Wno-mismatched-tags -Wno-char-subscripts +AM_CXXFLAGS = -Wall -Wno-char-subscripts +if CLANG +AM_CXXFLAGS += -Wno-mismatched-tags +endif + AM_CPPFLAGS = -D'DEFAULT_SCITECOPATH="@DEFAULT_SCITECOPATH@"' if NEED_COMPAT AM_CPPFLAGS += -I@top_srcdir@/compat |