diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index f465a165e6..33f0d3cd15 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -16,7 +16,7 @@ jobs: name: Linux container: wpilib/roborio-cross-ubuntu:2023-22.04 flags: "" - - os: macOS-11 + - os: macOS-12 name: macOS container: "" flags: "-DWITH_JAVA=OFF" diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f603a50910..6afc5312c4 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -46,7 +46,7 @@ jobs: build-host: env: - MACOSX_DEPLOYMENT_TARGET: 10.15 + MACOSX_DEPLOYMENT_TARGET: 11 strategy: fail-fast: false matrix: @@ -63,7 +63,7 @@ jobs: build-options: "-PciReleaseOnly --max-workers 1" task: "copyAllOutputs" outputs: "build/allOutputs" - - os: macOS-11 + - os: macOS-12 artifact-name: macOS architecture: x64 task: "build" diff --git a/glass/src/lib/native/cpp/Storage.cpp b/glass/src/lib/native/cpp/Storage.cpp index 4a20ab5ce6..abb44848f8 100644 --- a/glass/src/lib/native/cpp/Storage.cpp +++ b/glass/src/lib/native/cpp/Storage.cpp @@ -4,9 +4,10 @@ #include "glass/Storage.h" +#include + #include #include -#include #include using namespace glass; diff --git a/glass/src/libnt/native/cpp/NetworkTables.cpp b/glass/src/libnt/native/cpp/NetworkTables.cpp index d91ad26ee4..a433b9f419 100644 --- a/glass/src/libnt/native/cpp/NetworkTables.cpp +++ b/glass/src/libnt/native/cpp/NetworkTables.cpp @@ -5,6 +5,7 @@ #include "glass/networktables/NetworkTables.h" #include +#include #include #include #include @@ -24,7 +25,6 @@ #include #include #include -#include #include #include diff --git a/ntcore/src/main/native/cpp/net/WireDecoder.cpp b/ntcore/src/main/native/cpp/net/WireDecoder.cpp index 224c5f5205..0ce8017819 100644 --- a/ntcore/src/main/native/cpp/net/WireDecoder.cpp +++ b/ntcore/src/main/native/cpp/net/WireDecoder.cpp @@ -5,11 +5,11 @@ #include "WireDecoder.h" #include +#include #include #include #include -#include #include #include diff --git a/ntcore/src/main/native/include/networktables/NetworkTableValue.h b/ntcore/src/main/native/include/networktables/NetworkTableValue.h index 7502ae3f81..d637e486d1 100644 --- a/ntcore/src/main/native/include/networktables/NetworkTableValue.h +++ b/ntcore/src/main/native/include/networktables/NetworkTableValue.h @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -15,8 +16,6 @@ #include #include -#include - #include "ntcore_c.h" namespace nt { diff --git a/ntcore/src/test/native/cpp/net/ServerImplTest.cpp b/ntcore/src/test/native/cpp/net/ServerImplTest.cpp index 65ee7fd286..68c7564283 100644 --- a/ntcore/src/test/native/cpp/net/ServerImplTest.cpp +++ b/ntcore/src/test/native/cpp/net/ServerImplTest.cpp @@ -4,12 +4,11 @@ #include +#include #include #include #include -#include - #include "../MockLogger.h" #include "../PubSubOptionsMatcher.h" #include "../SpanMatcher.h" diff --git a/upstream_utils/libuv_patches/0001-Fix-missing-casts.patch b/upstream_utils/libuv_patches/0001-Fix-missing-casts.patch index 971d984e72..1c3b4bc27a 100644 --- a/upstream_utils/libuv_patches/0001-Fix-missing-casts.patch +++ b/upstream_utils/libuv_patches/0001-Fix-missing-casts.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Tue, 26 Apr 2022 15:01:25 -0400 -Subject: [PATCH 1/9] Fix missing casts +Subject: [PATCH 01/10] Fix missing casts --- include/uv/unix.h | 2 +- diff --git a/upstream_utils/libuv_patches/0002-Fix-warnings.patch b/upstream_utils/libuv_patches/0002-Fix-warnings.patch index a412878443..15f628fb46 100644 --- a/upstream_utils/libuv_patches/0002-Fix-warnings.patch +++ b/upstream_utils/libuv_patches/0002-Fix-warnings.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Tue, 26 Apr 2022 15:09:43 -0400 -Subject: [PATCH 2/9] Fix warnings +Subject: [PATCH 02/10] Fix warnings --- include/uv/win.h | 5 +++ diff --git a/upstream_utils/libuv_patches/0003-Preprocessor-cleanup.patch b/upstream_utils/libuv_patches/0003-Preprocessor-cleanup.patch index c158d33f8f..dd55010391 100644 --- a/upstream_utils/libuv_patches/0003-Preprocessor-cleanup.patch +++ b/upstream_utils/libuv_patches/0003-Preprocessor-cleanup.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Tue, 26 Apr 2022 15:19:14 -0400 -Subject: [PATCH 3/9] Preprocessor cleanup +Subject: [PATCH 03/10] Preprocessor cleanup --- include/uv.h | 18 +----------------- diff --git a/upstream_utils/libuv_patches/0004-Cleanup-problematic-language.patch b/upstream_utils/libuv_patches/0004-Cleanup-problematic-language.patch index 55e7ecf2d8..10fac00d06 100644 --- a/upstream_utils/libuv_patches/0004-Cleanup-problematic-language.patch +++ b/upstream_utils/libuv_patches/0004-Cleanup-problematic-language.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Tue, 26 Apr 2022 15:24:47 -0400 -Subject: [PATCH 4/9] Cleanup problematic language +Subject: [PATCH 04/10] Cleanup problematic language --- src/unix/tty.c | 21 +++++++++++---------- diff --git a/upstream_utils/libuv_patches/0005-Use-roborio-time.patch b/upstream_utils/libuv_patches/0005-Use-roborio-time.patch index bf0d902c1a..c4b2788541 100644 --- a/upstream_utils/libuv_patches/0005-Use-roborio-time.patch +++ b/upstream_utils/libuv_patches/0005-Use-roborio-time.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Tue, 26 Apr 2022 15:26:03 -0400 -Subject: [PATCH 5/9] Use roborio time +Subject: [PATCH 05/10] Use roborio time --- src/unix/linux-core.c | 8 ++++++++ diff --git a/upstream_utils/libuv_patches/0006-Style-comments-cleanup.patch b/upstream_utils/libuv_patches/0006-Style-comments-cleanup.patch index 56d296cc18..a472b22005 100644 --- a/upstream_utils/libuv_patches/0006-Style-comments-cleanup.patch +++ b/upstream_utils/libuv_patches/0006-Style-comments-cleanup.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Tue, 26 Apr 2022 15:28:52 -0400 -Subject: [PATCH 6/9] Style / comments cleanup +Subject: [PATCH 06/10] Style / comments cleanup --- src/fs-poll.c | 1 + diff --git a/upstream_utils/libuv_patches/0007-Squelch-GCC-warnings-we-don-t-know-how-to-fix.patch b/upstream_utils/libuv_patches/0007-Squelch-GCC-warnings-we-don-t-know-how-to-fix.patch index 5ec9fa160f..b0ca81cf5c 100644 --- a/upstream_utils/libuv_patches/0007-Squelch-GCC-warnings-we-don-t-know-how-to-fix.patch +++ b/upstream_utils/libuv_patches/0007-Squelch-GCC-warnings-we-don-t-know-how-to-fix.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Tue, 17 May 2022 21:36:57 -0700 -Subject: [PATCH 7/9] Squelch GCC warnings we don't know how to fix +Subject: [PATCH 07/10] Squelch GCC warnings we don't know how to fix --- src/queue.h | 16 ++++++++++++++++ diff --git a/upstream_utils/libuv_patches/0008-Fix-Win32-warning-suppression-pragma.patch b/upstream_utils/libuv_patches/0008-Fix-Win32-warning-suppression-pragma.patch index 3277df0600..2484f969f7 100644 --- a/upstream_utils/libuv_patches/0008-Fix-Win32-warning-suppression-pragma.patch +++ b/upstream_utils/libuv_patches/0008-Fix-Win32-warning-suppression-pragma.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sat, 21 May 2022 22:58:06 -0700 -Subject: [PATCH 8/9] Fix Win32 warning suppression pragma +Subject: [PATCH 08/10] Fix Win32 warning suppression pragma --- src/win/util.c | 2 +- diff --git a/upstream_utils/libuv_patches/0009-Avoid-unused-variable-warning-on-Mac.patch b/upstream_utils/libuv_patches/0009-Avoid-unused-variable-warning-on-Mac.patch index d1af63d863..5d2b8ddb3c 100644 --- a/upstream_utils/libuv_patches/0009-Avoid-unused-variable-warning-on-Mac.patch +++ b/upstream_utils/libuv_patches/0009-Avoid-unused-variable-warning-on-Mac.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 5 Jun 2022 15:40:35 -0700 -Subject: [PATCH 9/9] Avoid unused variable warning on Mac +Subject: [PATCH 09/10] Avoid unused variable warning on Mac --- src/unix/darwin.c | 1 + diff --git a/upstream_utils/libuv_patches/0010-Squelch-Apple-Clang-sprintf-deprecation-warning.patch b/upstream_utils/libuv_patches/0010-Squelch-Apple-Clang-sprintf-deprecation-warning.patch new file mode 100644 index 0000000000..a6e437746d --- /dev/null +++ b/upstream_utils/libuv_patches/0010-Squelch-Apple-Clang-sprintf-deprecation-warning.patch @@ -0,0 +1,28 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tyler Veness +Date: Wed, 7 Jun 2023 21:04:19 -0700 +Subject: [PATCH 10/10] Squelch Apple Clang sprintf deprecation warning + +--- + src/inet.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/inet.c b/src/inet.c +index 1b190255ed5f4813428dbb3ba81a50cfd26c5bf1..57e5c042ef8adb880279f94bcccc70f78df338fc 100644 +--- a/src/inet.c ++++ b/src/inet.c +@@ -139,7 +139,14 @@ static int inet_ntop6(const unsigned char *src, char *dst, size_t size) { + tp += strlen(tp); + break; + } ++#if defined(__APPLE__) && defined(__clang__) ++#pragma clang diagnostic push ++#pragma clang diagnostic ignored "-Wdeprecated-declarations" ++#endif // defined(__APPLE__) && defined(__clang__) + tp += sprintf(tp, "%x", words[i]); ++#if defined(__APPLE__) && defined(__clang__) ++#pragma clang diagnostic pop ++#endif // defined(__APPLE__) && defined(__clang__) + } + /* Was it a trailing run of 0x00's? */ + if (best.base != -1 && (best.base + best.len) == ARRAY_SIZE(words)) diff --git a/upstream_utils/update_libuv.py b/upstream_utils/update_libuv.py index 604bbdbe89..68e132da79 100755 --- a/upstream_utils/update_libuv.py +++ b/upstream_utils/update_libuv.py @@ -29,6 +29,7 @@ def main(): "0007-Squelch-GCC-warnings-we-don-t-know-how-to-fix.patch", "0008-Fix-Win32-warning-suppression-pragma.patch", "0009-Avoid-unused-variable-warning-on-Mac.patch", + "0010-Squelch-Apple-Clang-sprintf-deprecation-warning.patch", ]: git_am(os.path.join(wpilib_root, "upstream_utils/libuv_patches", f)) diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h b/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h index ca5764bf3a..ed93b655f9 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h @@ -4,11 +4,10 @@ #pragma once +#include #include #include -#include - #include "frc2/command/Command.h" #include "frc2/command/CommandPtr.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h b/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h index e329035115..588bb0be6b 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -12,8 +13,6 @@ #include #include -#include - #include "frc2/command/CommandBase.h" namespace frc2 { diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/CommandScheduler.h b/wpilibNewCommands/src/main/native/include/frc2/command/CommandScheduler.h index fcf2852488..cd9579c472 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/CommandScheduler.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/CommandScheduler.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -15,7 +16,6 @@ #include #include #include -#include #include namespace frc2 { diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h b/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h index 6f2963f107..92cc54eb04 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -13,8 +14,6 @@ #include #include -#include - #include "frc2/command/CommandPtr.h" #include "frc2/command/SelectCommand.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/ConditionalCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/ConditionalCommand.h index 59621acb19..ce9cb473fe 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/ConditionalCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/ConditionalCommand.h @@ -4,12 +4,11 @@ #pragma once +#include #include #include #include -#include - #include "frc2/command/CommandBase.h" #include "frc2/command/CommandHelper.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/ParallelCommandGroup.h b/wpilibNewCommands/src/main/native/include/frc2/command/ParallelCommandGroup.h index e13762b4fb..f5adc60806 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/ParallelCommandGroup.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/ParallelCommandGroup.h @@ -9,13 +9,13 @@ #pragma warning(disable : 4521) #endif +#include #include #include #include #include #include -#include #include "frc2/command/CommandGroupBase.h" #include "frc2/command/CommandHelper.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/ParallelDeadlineGroup.h b/wpilibNewCommands/src/main/native/include/frc2/command/ParallelDeadlineGroup.h index c41924fd88..cbf675b78a 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/ParallelDeadlineGroup.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/ParallelDeadlineGroup.h @@ -9,13 +9,13 @@ #pragma warning(disable : 4521) #endif +#include #include #include #include #include #include -#include #include "frc2/command/CommandGroupBase.h" #include "frc2/command/CommandHelper.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/ParallelRaceGroup.h b/wpilibNewCommands/src/main/native/include/frc2/command/ParallelRaceGroup.h index 79c897b648..187765333f 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/ParallelRaceGroup.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/ParallelRaceGroup.h @@ -9,13 +9,13 @@ #pragma warning(disable : 4521) #endif +#include #include #include #include #include #include -#include #include "frc2/command/CommandGroupBase.h" #include "frc2/command/CommandHelper.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/PerpetualCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/PerpetualCommand.h index 107f08ddf2..05461e1bf4 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/PerpetualCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/PerpetualCommand.h @@ -9,10 +9,10 @@ #pragma warning(disable : 4521) #endif +#include #include #include -#include #include #include "frc2/command/CommandBase.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/RepeatCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/RepeatCommand.h index 8e013b2472..9639928161 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/RepeatCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/RepeatCommand.h @@ -9,11 +9,10 @@ #pragma warning(disable : 4521) #endif +#include #include #include -#include - #include "frc2/command/CommandBase.h" #include "frc2/command/CommandHelper.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h index ab37fba9c3..eed41c9b57 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h @@ -9,13 +9,13 @@ #pragma warning(disable : 4521) #endif +#include #include #include #include #include #include -#include #include #include diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h b/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h index c301bfbfa2..1904dacd26 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h @@ -9,6 +9,7 @@ #pragma warning(disable : 4521) #endif +#include #include #include #include @@ -17,7 +18,6 @@ #include #include -#include #include "frc2/command/CommandGroupBase.h" #include "frc2/command/CommandHelper.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/Subsystem.h b/wpilibNewCommands/src/main/native/include/frc2/command/Subsystem.h index 7c1af4f21f..840488d432 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/Subsystem.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/Subsystem.h @@ -4,10 +4,9 @@ #pragma once +#include #include -#include - #include "frc2/command/CommandScheduler.h" namespace frc2 { diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/WrapperCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/WrapperCommand.h index c849e09ccc..bb5c1790e2 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/WrapperCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/WrapperCommand.h @@ -9,11 +9,10 @@ #pragma warning(disable : 4521) #endif +#include #include #include -#include - #include "frc2/command/CommandBase.h" #include "frc2/command/CommandHelper.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/button/Button.h b/wpilibNewCommands/src/main/native/include/frc2/command/button/Button.h index 978251c7f7..a71238061f 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/button/Button.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/button/Button.h @@ -4,12 +4,12 @@ #pragma once +#include #include #include #include #include -#include #include #include "Trigger.h" diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h b/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h index e66256b927..49c46bd186 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -14,7 +15,6 @@ #include #include #include -#include #include "frc2/command/Command.h" #include "frc2/command/CommandScheduler.h" diff --git a/wpilibc/src/main/native/include/frc/Notifier.h b/wpilibc/src/main/native/include/frc/Notifier.h index 2e48290be0..4915aa1d9f 100644 --- a/wpilibc/src/main/native/include/frc/Notifier.h +++ b/wpilibc/src/main/native/include/frc/Notifier.h @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -14,7 +15,6 @@ #include #include -#include #include namespace frc { diff --git a/wpilibc/src/main/native/include/frc/smartdashboard/MechanismObject2d.h b/wpilibc/src/main/native/include/frc/smartdashboard/MechanismObject2d.h index 0feeb645e5..81cbc97664 100644 --- a/wpilibc/src/main/native/include/frc/smartdashboard/MechanismObject2d.h +++ b/wpilibc/src/main/native/include/frc/smartdashboard/MechanismObject2d.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -12,7 +13,6 @@ #include #include -#include #include "frc/Errors.h" diff --git a/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h b/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h index 6efe03e5fa..a900b5cca1 100644 --- a/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h +++ b/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h @@ -4,11 +4,11 @@ #pragma once +#include #include #include #include -#include #include "frc/smartdashboard/SendableChooserBase.h" diff --git a/wpimath/src/main/native/include/frc/StateSpaceUtil.h b/wpimath/src/main/native/include/frc/StateSpaceUtil.h index 6c716e1790..be22e8248e 100644 --- a/wpimath/src/main/native/include/frc/StateSpaceUtil.h +++ b/wpimath/src/main/native/include/frc/StateSpaceUtil.h @@ -6,11 +6,11 @@ #include #include +#include #include #include #include -#include #include #include "Eigen/Eigenvalues" diff --git a/wpimath/src/main/native/include/frc/fmt/Eigen.h b/wpimath/src/main/native/include/frc/fmt/Eigen.h index e3f8f7499e..5bdf43a2da 100644 --- a/wpimath/src/main/native/include/frc/fmt/Eigen.h +++ b/wpimath/src/main/native/include/frc/fmt/Eigen.h @@ -4,8 +4,9 @@ #pragma once +#include + #include -#include #include "Eigen/Core" #include "Eigen/SparseCore" diff --git a/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h b/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h index 48b7e102ea..4e472075a8 100644 --- a/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h +++ b/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h @@ -4,11 +4,11 @@ #pragma once +#include #include #include #include -#include #include "Eigen/QR" #include "frc/EigenCore.h" diff --git a/wpimath/src/main/native/include/frc/system/plant/LinearSystemId.h b/wpimath/src/main/native/include/frc/system/plant/LinearSystemId.h index a57cc6a4e0..dda0ceed33 100644 --- a/wpimath/src/main/native/include/frc/system/plant/LinearSystemId.h +++ b/wpimath/src/main/native/include/frc/system/plant/LinearSystemId.h @@ -4,10 +4,10 @@ #pragma once +#include #include #include -#include #include "frc/system/LinearSystem.h" #include "frc/system/plant/DCMotor.h" diff --git a/wpimath/src/main/native/include/frc/trajectory/TrajectoryConfig.h b/wpimath/src/main/native/include/frc/trajectory/TrajectoryConfig.h index 640e735be7..4e6c1e6e29 100644 --- a/wpimath/src/main/native/include/frc/trajectory/TrajectoryConfig.h +++ b/wpimath/src/main/native/include/frc/trajectory/TrajectoryConfig.h @@ -4,12 +4,12 @@ #pragma once +#include #include #include #include #include -#include #include "frc/kinematics/DifferentialDriveKinematics.h" #include "frc/kinematics/MecanumDriveKinematics.h" diff --git a/wpimath/src/main/native/include/frc/trajectory/constraint/EllipticalRegionConstraint.h b/wpimath/src/main/native/include/frc/trajectory/constraint/EllipticalRegionConstraint.h index a6421eeba3..74f3c55cd5 100644 --- a/wpimath/src/main/native/include/frc/trajectory/constraint/EllipticalRegionConstraint.h +++ b/wpimath/src/main/native/include/frc/trajectory/constraint/EllipticalRegionConstraint.h @@ -4,10 +4,9 @@ #pragma once +#include #include -#include - #include "frc/geometry/Rotation2d.h" #include "frc/geometry/Translation2d.h" #include "frc/trajectory/constraint/TrajectoryConstraint.h" diff --git a/wpimath/src/main/native/include/frc/trajectory/constraint/RectangularRegionConstraint.h b/wpimath/src/main/native/include/frc/trajectory/constraint/RectangularRegionConstraint.h index c592fd5a42..f3b364b114 100644 --- a/wpimath/src/main/native/include/frc/trajectory/constraint/RectangularRegionConstraint.h +++ b/wpimath/src/main/native/include/frc/trajectory/constraint/RectangularRegionConstraint.h @@ -4,10 +4,9 @@ #pragma once +#include #include -#include - #include "frc/geometry/Rotation2d.h" #include "frc/geometry/Translation2d.h" #include "frc/trajectory/constraint/TrajectoryConstraint.h" diff --git a/wpinet/src/main/native/include/wpinet/uv/AsyncFunction.h b/wpinet/src/main/native/include/wpinet/uv/AsyncFunction.h index ea5715851c..f59875a372 100644 --- a/wpinet/src/main/native/include/wpinet/uv/AsyncFunction.h +++ b/wpinet/src/main/native/include/wpinet/uv/AsyncFunction.h @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -15,7 +16,6 @@ #include #include -#include #include #include diff --git a/wpinet/src/main/native/thirdparty/libuv/src/inet.cpp b/wpinet/src/main/native/thirdparty/libuv/src/inet.cpp index 1b190255ed..57e5c042ef 100644 --- a/wpinet/src/main/native/thirdparty/libuv/src/inet.cpp +++ b/wpinet/src/main/native/thirdparty/libuv/src/inet.cpp @@ -139,7 +139,14 @@ static int inet_ntop6(const unsigned char *src, char *dst, size_t size) { tp += strlen(tp); break; } +#if defined(__APPLE__) && defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif // defined(__APPLE__) && defined(__clang__) tp += sprintf(tp, "%x", words[i]); +#if defined(__APPLE__) && defined(__clang__) +#pragma clang diagnostic pop +#endif // defined(__APPLE__) && defined(__clang__) } /* Was it a trailing run of 0x00's? */ if (best.base != -1 && (best.base + best.len) == ARRAY_SIZE(words)) diff --git a/wpiutil/src/main/native/include/wpi/DecayedDerivedFrom.h b/wpiutil/src/main/native/include/wpi/DecayedDerivedFrom.h index 9409481a60..c776c9ce9c 100644 --- a/wpiutil/src/main/native/include/wpi/DecayedDerivedFrom.h +++ b/wpiutil/src/main/native/include/wpi/DecayedDerivedFrom.h @@ -4,10 +4,9 @@ #pragma once +#include #include -#include "wpi/concepts.h" - namespace wpi { template diff --git a/wpiutil/src/main/native/include/wpi/array.h b/wpiutil/src/main/native/include/wpi/array.h index 60c6373ef9..d6711f16d9 100644 --- a/wpiutil/src/main/native/include/wpi/array.h +++ b/wpiutil/src/main/native/include/wpi/array.h @@ -5,12 +5,11 @@ #pragma once #include +#include #include #include #include -#include "wpi/concepts.h" - namespace wpi { struct empty_array_t {}; diff --git a/wpiutil/src/main/native/include/wpi/concepts.h b/wpiutil/src/main/native/include/wpi/concepts.h deleted file mode 100644 index f17b919253..0000000000 --- a/wpiutil/src/main/native/include/wpi/concepts.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -#pragma once - -#include - -#if defined(__APPLE__) && !defined(__cpp_lib_concepts) - -#include -#include -#include - -namespace std { - -template -concept constructible_from = - is_nothrow_destructible_v && is_constructible_v; - -template -concept convertible_to = is_convertible_v && - requires { static_cast(declval()); }; - -template -concept move_constructible = constructible_from && convertible_to; - -template -concept copy_constructible = - move_constructible && constructible_from && - convertible_to && constructible_from && - convertible_to && constructible_from && - convertible_to; - -template -concept default_initializable = - constructible_from && requires { T{}; } && requires { ::new T; }; - -template -concept derived_from = - is_base_of_v && - is_convertible_v; - -template -concept floating_point = is_floating_point_v; - -template -concept integral = is_integral_v; - -template -concept invocable = requires(F&& f, Args&&... args) { - invoke(forward(f), forward(args)...); -}; - -} // namespace std - -#endif // defined(__APPLE__) && !defined(__cpp_lib_concepts) diff --git a/wpiutil/src/main/native/include/wpi/jni_util.h b/wpiutil/src/main/native/include/wpi/jni_util.h index 6ed58891ce..d34faccf64 100644 --- a/wpiutil/src/main/native/include/wpi/jni_util.h +++ b/wpiutil/src/main/native/include/wpi/jni_util.h @@ -7,6 +7,7 @@ #include +#include #include #include #include @@ -19,7 +20,6 @@ #include "wpi/SmallString.h" #include "wpi/SmallVector.h" #include "wpi/StringExtras.h" -#include "wpi/concepts.h" #include "wpi/mutex.h" #include "wpi/raw_ostream.h" diff --git a/wpiutil/src/main/native/include/wpi/priority_queue.h b/wpiutil/src/main/native/include/wpi/priority_queue.h index 8be6aafea2..af683747c2 100644 --- a/wpiutil/src/main/native/include/wpi/priority_queue.h +++ b/wpiutil/src/main/native/include/wpi/priority_queue.h @@ -6,12 +6,11 @@ #define WPIUTIL_WPI_PRIORITY_QUEUE_H_ #include +#include #include #include #include -#include "wpi/concepts.h" - namespace wpi { /**