Work around an issue being resolved in PR1306.

This commit is contained in:
Vassil Vassilev 2017-11-11 10:18:41 -07:00 committed by sftnight
parent 315dfad70e
commit 5abbe64ffd

View File

@ -821,6 +821,11 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts,
// Disable the warning when we import a module from extern C. Some headers // 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. // from the STL are doing this and we can't really do anything about this.
argvCompile.push_back("-Wno-module-import-in-extern-c"); 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) { if (!COpts.Language) {