Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Oct 4, 2024
1 parent b9a993f commit 5c51fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asm/warning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ void processWarningFlag(char const *flag) {

// Check for `-Werror` or `-Wno-error` to return early
if (rootFlag == "error") {
// `-Werror` simply makes all warnings into errors
// `-Werror` promotes warnings to errors
warningsAreErrors = true;
return;
} else if (rootFlag == "no-error") {
// `-Wno-error` simply prevents all warnings from being errors
// `-Wno-error` disables promotion of warnings to errors
warningsAreErrors = false;
return;
}
Expand Down

0 comments on commit 5c51fff

Please sign in to comment.