diff --git a/interpreter/cling/lib/Interpreter/CIFactory.cpp b/interpreter/cling/lib/Interpreter/CIFactory.cpp index dd9efe175502c..27c69d63ca7f5 100644 --- a/interpreter/cling/lib/Interpreter/CIFactory.cpp +++ b/interpreter/cling/lib/Interpreter/CIFactory.cpp @@ -821,6 +821,11 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts, // Disable the warning when we import a module from extern C. Some headers // from the STL are doing this and we can't really do anything about this. argvCompile.push_back("-Wno-module-import-in-extern-c"); + // Disable the warning when we import a module in a function body. This + // is a ROOT-specific issue tracked by ROOT-9088. + // FIXME: Remove after merging ROOT's PR1306. + argvCompile.push_back("-Wmodules-import-nested-redundant"); + } if (!COpts.Language) {