Skip to content

Commit

Permalink
Fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan authored and well-in-that-case committed Oct 25, 2024
1 parent 3e956ce commit 3e5b39b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/llex.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,17 @@ class WarningConfig
error += name;

if (strstr(line, enable.c_str()) != nullptr) {
if (name != "all")
if (id != ALL_WARNINGS)
states[id] = WS_ON;
else
setAllTo(WS_ON);
} else if (strstr(line, disable.c_str()) != nullptr) {
if (name != "all")
if (id != ALL_WARNINGS)
states[id] = WS_OFF;
else
setAllTo(WS_OFF);
} else if (strstr(line, error.c_str()) != nullptr) {
if (name != "all")
if (id != ALL_WARNINGS)
states[id] = WS_ERROR;
else
setAllTo(WS_ERROR);
Expand Down

0 comments on commit 3e5b39b

Please sign in to comment.