Skip to content

Commit

Permalink
Merge pull request #2815 from cmorve-te/gcc_warnings
Browse files Browse the repository at this point in the history
Update gcc rules to 14.2
  • Loading branch information
guwirth authored Nov 22, 2024
2 parents fb106d1 + 0c7b6c3 commit 24f35c7
Show file tree
Hide file tree
Showing 4 changed files with 7,109 additions and 2,464 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,29 @@ protected String alignId(@Nullable String id) {
if (id == null || "".equals(id)) {
id = DEFAULT_ID;
}
return id.replaceAll("=$", "");
if (id.charAt(id.length() - 1) == '=') {
id = id.substring(0, id.length() - 1);
}

switch(id) {
case "-Wc++0x-compat":
id = "-Wc++11-compat";
break;
case "-Wc++1z-compat":
id = "-Wc++17-compat";
break;
case "-Wc11-c2x-compat":
id = "-Wc11-c23-compat";
break;
case "-Wmissing-format-attribute":
id = "-Wsuggest-attribute=format";
break;
case "-Wmissing-noreturn":
id = "-Wsuggest-attribute=noreturn";
break;
}

return id;
}

@Override
Expand Down
Loading

0 comments on commit 24f35c7

Please sign in to comment.