Browse Source

Turn off warnings on MSVC include search rules (#1266)

Lei Zhang 7 years ago
parent
commit
d2c7edb173
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tools/clang/lib/Lex/HeaderSearch.cpp

+ 2 - 0
tools/clang/lib/Lex/HeaderSearch.cpp

@@ -564,7 +564,9 @@ static bool checkMSVCHeaderSearch(DiagnosticsEngine &Diags,
                                   const FileEntry *MSFE, const FileEntry *FE,
                                   const FileEntry *MSFE, const FileEntry *FE,
                                   SourceLocation IncludeLoc) {
                                   SourceLocation IncludeLoc) {
   if (MSFE && FE != MSFE) {
   if (MSFE && FE != MSFE) {
+#if 0  // HLSL Change - turn off warnings of MSVC search rules
     Diags.Report(IncludeLoc, diag::ext_pp_include_search_ms) << MSFE->getName();
     Diags.Report(IncludeLoc, diag::ext_pp_include_search_ms) << MSFE->getName();
+#endif // HLSL Change
     return true;
     return true;
   }
   }
   return false;
   return false;