[Openmp-commits] [openmp] [Libomptarget] Pass '-Werror=global-constructors' to the libomptarget build (PR #88531)

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Tue Apr 16 06:33:57 PDT 2024


================
@@ -23,6 +23,9 @@
 
 using namespace llvm;
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wglobal-constructors"
----------------
Meinersbur wrote:

Clang does warn about unknown pragmas with `-Wall`, but seems to actually support `'#pragma GCC diagnostic`: https://godbolt.org/z/WfTrMGr5d

https://github.com/llvm/llvm-project/pull/88531


More information about the Openmp-commits mailing list