[Lldb-commits] [PATCH 1/2] Ignore unknown pragmas.

Stephen Wilson wilsons at start.ca
Tue Jan 4 12:55:33 PST 2011


In particular, we are looking to ignore the "#pragma mark" construct which GCC
warns about on platforms other than Darwin.  This cleans up diagnostic output
significantly.
---
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 70c4801..abe694b 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,10 @@ endif
 # We can revisit this when LLVM/Clang support it.
 CXX.Flags += -fno-strict-aliasing
 
+# Do not warn about pragmas.  In particular, we are looking to ignore the
+# "#pragma mark" construct which GCC warns about on platforms other than Darwin.
+EXTRA_OPTIONS += -Wno-unknown-pragmas
+
 ###
 # LLDB Top Level specific stuff.
 
-- 
1.7.3.2




More information about the lldb-commits mailing list