Skip to content

Commit

Permalink
Make deprecations produce errors in WPILib builds (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Sep 25, 2023
1 parent 45d9dcb commit ec71b04
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static class DefaultArguments {

// -Wdeprecated-enum-enum-conversion was introduced in GCC 11
public final List<String> linuxCrossCompilerArgs = List.of("-std=c++20", "-Wformat=2", "-pedantic",
"-Wno-psabi", "-Wno-unused-parameter", "-Wno-error=deprecated-declarations", "-fPIC", "-pthread");
"-Wno-psabi", "-Wno-unused-parameter", "-fPIC", "-pthread");
public final List<String> linuxCrossCompilerExtraArgs11 = List.of("-Wno-error=deprecated-enum-enum-conversion");
public final List<String> linuxCrossCCompilerArgs = List.of("-Wformat=2", "-pedantic", "-Wno-psabi",
"-Wno-unused-parameter", "-fPIC", "-pthread");
Expand All @@ -67,8 +67,7 @@ public static class DefaultArguments {
public final List<String> linuxCrossDebugCompilerArgs = List.of("-Og");

public final List<String> linuxCompilerArgs = List.of("-std=c++20", "-Wformat=2", "-pedantic", "-Wno-psabi",
"-Wno-unused-parameter", "-Wno-error=deprecated-declarations",
"-Wno-error=deprecated-enum-enum-conversion", "-fPIC", "-pthread");
"-Wno-unused-parameter", "-Wno-error=deprecated-enum-enum-conversion", "-fPIC", "-pthread");
public final List<String> linuxCCompilerArgs = List.of("-Wformat=2", "-pedantic", "-Wno-psabi",
"-Wno-unused-parameter", "-fPIC", "-pthread");
public final List<String> linuxLinkerArgs = List.of("-rdynamic", "-pthread", "-ldl", "-latomic");
Expand All @@ -78,9 +77,8 @@ public static class DefaultArguments {
public final String macMinimumVersionArg = "-mmacosx-version-min=10.15";

public final List<String> macCompilerArgs = List.of("-std=c++20", "-pedantic", "-fPIC", "-Wno-unused-parameter",
"-Wno-error=deprecated-declarations", "-Wno-error=deprecated-enum-enum-conversion",
"-Wno-missing-field-initializers", "-Wno-unused-private-field", "-Wno-unused-const-variable",
"-Wno-error=c11-extensions", "-pthread");
"-Wno-error=deprecated-enum-enum-conversion", "-Wno-missing-field-initializers",
"-Wno-unused-private-field", "-Wno-unused-const-variable", "-Wno-error=c11-extensions", "-pthread");
public final List<String> macCCompilerArgs = List.of("-pedantic", "-fPIC", "-Wno-unused-parameter",
"-Wno-missing-field-initializers", "-Wno-unused-private-field", "-Wno-fixed-enum-extension");
public final List<String> macObjcppCompilerArgs = List.of("-std=c++20", "-stdlib=libc++", "-fobjc-weak",
Expand Down

0 comments on commit ec71b04

Please sign in to comment.