Skip to content

Commit

Permalink
Update gcc rules to 14.2
Browse files Browse the repository at this point in the history
The Fortran-only aliasing, align-commons, ampersand, array-temporaries,
character-truncation, conversion-extra, function-elimination,
implicit-interface, implicit-procedure, intrinsic-shadow,
intrinsics-std, line-truncation, real-q-constant, surprising, underflow
and unused-dummy-argument warnings have been removed.

-Wsystem-headers has also been removed since it's not a warning, it's an
option that affects whether warnings in system headers are reported.

-Wno-aggressive-loop-optimizations and -Wno-builtin-declaration-mismatch
have been replaced with the correct -Waggressive-loop-optimizations and
-Wbuiltin-declaration-mismatch.
  • Loading branch information
cmorve-te committed Nov 19, 2024
1 parent b615d5c commit b024e9c
Show file tree
Hide file tree
Showing 4 changed files with 7,101 additions and 2,464 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,21 @@ protected String alignId(@Nullable String id) {
if (id == null || "".equals(id)) {
id = DEFAULT_ID;
}
return id.replaceAll("=$", "");
id = id.replaceAll("=$", "");

if (id.equals("-Wc++0x-compat")) {
id = "-Wc++11-compat";
} else if (id.equals("-Wc++1z-compat")) {
id = "-Wc++17-compat";
} else if (id.equals("-Wc11-c2x-compat")) {
id = "-Wc11-c23-compat";
} else if (id.equals("-Wmissing-format-attribute")) {
id = "-Wsuggest-attribute=format";
} else if (id.equals("-Wmissing-noreturn")) {
id = "-Wsuggest-attribute=noreturn";
}

return id;
}

@Override
Expand Down
Loading

0 comments on commit b024e9c

Please sign in to comment.