-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #709 from Autodesk/wpilib-2021
Update Emulator for WPILib 2021.2.2 Support
- Loading branch information
Showing
5 changed files
with
52 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
--- ./hal/src/main/native/sim/FRCDriverStation.cpp 2020-12-30 02:01:20.371892128 -0500 | ||
+++ ./hal/src/main/native/sim/FRCDriverStation2.cpp 2020-12-30 02:02:19.458557374 -0500 | ||
@@ -292,6 +292,10 @@ | ||
--- ./hal/src/main/native/sim/FRCDriverStation.cpp 2021-03-27 16:47:26.558444755 -0700 | ||
+++ ./hal/src/main/native/sim/FRCDriverStation2.cpp 2021-03-27 16:47:13.921777667 -0700 | ||
@@ -288,6 +288,11 @@ | ||
} | ||
} | ||
|
||
+#pragma GCC diagnostic push | ||
+#pragma GCC diagnostic ignored "-Wstringop-truncation" | ||
+#pragma GCC diagnostic ignored "-Wstringop-overflow" | ||
+ | ||
+#pragma GCC diagnostic push | ||
+#if defined(__GNUC__) && (__GNUC__ > 8) | ||
+ #pragma GCC diagnostic ignored "-Wstringop-truncation" | ||
+ #pragma GCC diagnostic ignored "-Wstringop-overflow" | ||
+#endif | ||
char* HAL_GetJoystickName(int32_t joystickNum) { | ||
HAL_JoystickDescriptor joystickDesc; | ||
if (HAL_GetJoystickDescriptor(joystickNum, &joystickDesc) < 0) { | ||
@@ -307,6 +311,8 @@ | ||
@@ -303,6 +308,8 @@ | ||
} | ||
} | ||
|
||
+#pragma GCC diagnostic pop | ||
+ | ||
void HAL_FreeJoystickName(char* name) { std::free(name); } | ||
|
||
int32_t HAL_GetJoystickAxisType(int32_t joystickNum, int32_t axis) { | ||
void HAL_FreeJoystickName(char* name) { | ||
std::free(name); | ||
} |