oneapi-src / SYCLomatic

Other
222 stars 91 forks source link

[NFC][SYCLomatic] Cleanup build warnings #2167

Closed yihanwg closed 1 month ago

yihanwg commented 1 month ago
clang/lib/Lex/InitHeaderSearch.cpp:524:53: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
  524 |     if (Entry.Lookup.getName().equals("/usr/include")) {
      |                                                     ^

clang/lib/DPCT/Diagnostics.cpp:105:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
  105 |       if (*Cur == '\0' && Begin < End) {
      |                           ~~~~~~^~~~~

llvm/lib/Support/CommandLine.cpp:2444:5: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
    default:
    ^