[Lldb-commits] [lldb] r264361 - Ignore global constructor warning in clang.
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 24 16:50:03 PDT 2016
Author: gclayton
Date: Thu Mar 24 18:50:03 2016
New Revision: 264361
URL: http://llvm.org/viewvc/llvm-project?rev=264361&view=rev
Log:
Ignore global constructor warning in clang.
Modified:
lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp?rev=264361&r1=264360&r2=264361&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp Thu Mar 24 18:50:03 2016
@@ -39,7 +39,11 @@
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/TargetSelect.h"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wglobal-constructors"
#include "llvm/ExecutionEngine/MCJIT.h"
+#pragma clang diagnostic pop
+
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/ErrorHandling.h"
More information about the lldb-commits
mailing list