diff --git a/src/aotcompile.cpp b/src/aotcompile.cpp index 22351ddd90a0a..f5c63d39aeba0 100644 --- a/src/aotcompile.cpp +++ b/src/aotcompile.cpp @@ -4,8 +4,20 @@ #include "platform.h" // target support -#include +#include \ + +//LLVM's DenseMap complains about a maybe uninitialized variable, we don't care about that +#ifdef _COMPILER_GCC_ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif + #include + +#ifdef _COMPILER_GCC_ +#pragma GCC diagnostic pop +#endif + #include #include #if JL_LLVM_VERSION >= 140000