[all-commits] [llvm/llvm-project] 60692a: [Support] Silence warning with Clang ToT.

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Tue Feb 28 00:41:07 PST 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 60692a66ced6dfa6c3ecbf57f518a59cf3845553
      https://github.com/llvm/llvm-project/commit/60692a66ced6dfa6c3ecbf57f518a59cf3845553
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M llvm/lib/Support/Windows/Signals.inc

  Log Message:
  -----------
  [Support] Silence warning with Clang ToT.

This fixes the following warning on Windows with latest Clang:
```
[160/3057] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.obj
In file included from C:/git/llvm-project/llvm/lib/Support/Signals.cpp:260:
C:/git/llvm-project/llvm/lib/Support/Windows/Signals.inc(834,15): warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  if (RetCode == (0xE0000000 | EX_IOERR))
      ~~~~~~~ ^   ~~~~~~~~~~~~~~~~~~~~~
1 warning generated.```

(cherry picked from commit 1d0a5f11c04e6ac4dab578b81d02eabb83b31428)




More information about the All-commits mailing list