]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Avoid warning when compiling with clang.
authorAndre Noll <maan@systemlinux.org>
Fri, 10 Jun 2011 13:35:01 +0000 (15:35 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 6 Jul 2011 08:05:06 +0000 (10:05 +0200)
Apparently clang does not recognize the

#pragma GCC visibility push(default)

lines in osl.h and complains for each file which includes this
header. Compliling without -Wno-unknown-pragmas fixes this.

Makefile.in

index 7a23832b124b8b09a99d43e10398bf764a303cc3..5016b065b85d9c36dccff605b4d8e8519a745610 100644 (file)
@@ -21,7 +21,7 @@ GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h)
 
 DEBUG_CPPFLAGS += -g -Wunused -Wundef -W
 DEBUG_CPPFLAGS += -Wredundant-decls
 
 DEBUG_CPPFLAGS += -g -Wunused -Wundef -W
 DEBUG_CPPFLAGS += -Wredundant-decls
-DEBUG_CPPFLAGS += -Wall -Wno-sign-compare
+DEBUG_CPPFLAGS += -Wall -Wno-sign-compare -Wno-unknown-pragmas
 DEBUG_CPPFLAGS += -Wformat-security
 DEBUG_CPPFLAGS += -Wmissing-format-attribute
 # produces false positives
 DEBUG_CPPFLAGS += -Wformat-security
 DEBUG_CPPFLAGS += -Wmissing-format-attribute
 # produces false positives