diff --git a/.github/workflows/fix_compile_commands.py b/.github/workflows/fix_compile_commands.py index 8a52830dea..82df7a8472 100755 --- a/.github/workflows/fix_compile_commands.py +++ b/.github/workflows/fix_compile_commands.py @@ -18,9 +18,9 @@ def main(): for obj in data: out_args = [] - # Filter out -isystem flags that cause false positives iter_args = iter(obj["arguments"]) for arg in iter_args: + # Filter out -isystem flags that cause false positives if arg == "-isystem": next_arg = next(iter_args) @@ -28,6 +28,9 @@ def main(): # error: conflicting types for '_mm_prefetch' [clang-diagnostic-error] if not next_arg.startswith("/usr/lib/gcc/"): out_args += ["-isystem", next_arg] + # Replace GCC warning argument with one Clang recognizes + elif arg == "-Wno-maybe-uninitialized": + out_args.append("-Wno-uninitialized") else: out_args.append(arg) diff --git a/apriltag/src/main/native/include/frc/apriltag/AprilTagFields.h b/apriltag/src/main/native/include/frc/apriltag/AprilTagFields.h index 6ef0930e9b..24040b6423 100644 --- a/apriltag/src/main/native/include/frc/apriltag/AprilTagFields.h +++ b/apriltag/src/main/native/include/frc/apriltag/AprilTagFields.h @@ -20,6 +20,8 @@ enum class AprilTagField { k2023ChargedUp, /// 2024 Crescendo. k2024Crescendo, + /// Alias to the current game. + kDefaultField = k2024Crescendo, // This is a placeholder for denoting the last supported field. This should // always be the last entry in the enum and should not be used by users