Skip to content

Commit

Permalink
fix unsafe mix of type warning in Diagnostic.cpp
Browse files Browse the repository at this point in the history
Warning appears when building on Windows:

```
Diagnostics.cpp
C:\git\root\interpreter\cling\lib\Utils\Diagnostics.cpp(37,27): warning
C4805: '|': unsafe mix of type 'bool' and type
'int' in operation
[C:\Soft\root_64\interpreter\cling\lib\Utils\obj.clingUtils.vcxproj]
```
  • Loading branch information
linev authored and jenkins committed Aug 14, 2023
1 parent 53d69ef commit 0b175d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Utils/Diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace {
DiagnosticsStore::DiagnosticsStore(clang::DiagnosticsEngine& Diags, bool Own,
bool Report, bool Reset) :
DiagnosticsOverride(Diags, Own),
m_Flags(Report | (Reset << 1)) {
m_Flags((Report ? kReport : 0) | (Reset ? kReset : 0)) {
}

DiagnosticsStore::~DiagnosticsStore() {
Expand Down

0 comments on commit 0b175d1

Please sign in to comment.