[all-commits] [llvm/llvm-project] 4fa736: [Clang] NFC Silence compiler warning spam (#86532)
NagyDonat via All-commits
all-commits at lists.llvm.org
Tue Mar 26 02:33:34 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4fa736ba41fce885047bd5a242230b216ea85c70
https://github.com/llvm/llvm-project/commit/4fa736ba41fce885047bd5a242230b216ea85c70
Author: NagyDonat <donat.nagy at ericsson.com>
Date: 2024-03-26 (Tue, 26 Mar 2024)
Changed paths:
M clang/include/clang/Basic/SyncScope.h
Log Message:
-----------
[Clang] NFC Silence compiler warning spam (#86532)
This non-functional change eliminates the compiler warning
```
/repo/llvm-project/clang/include/clang/Basic/SyncScope.h: In member function ‘virtual bool clang::AtomicScopeGenericModel::isValid(unsigned int) const’:
/repo/llvm-project/clang/include/clang/Basic/SyncScope.h:255:14: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
return S >= static_cast<unsigned>(System) &&
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
which was appearing repeatedly, as this header is included into very
many source files (through various chains of 6-7 header files).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list