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

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue Apr 16 06:16:04 PDT 2024


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

They don't honor `-Werror=global-constructors` so it wouldn't matter, and unrecognized pragmas are silently ignored AFAIK.

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


More information about the Openmp-commits mailing list