forked from wpilibsuite/allwpilib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16f54dd
commit 2145828
Showing
14 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0001-Fix-sign-compare-warnings.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0002-Remove-redundant-move.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0003-Fix-maybe-uninitialized-warnings.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0004-Fix-coded_stream-WriteRaw.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0005-Suppress-enum-enum-conversion-warning.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0006-Fix-noreturn-function-returning.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0007-Work-around-GCC-12-restrict-warning-compiler-bug.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0008-Disable-MSVC-switch-warning.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0009-Disable-unused-function-warning.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0010-Disable-pedantic-warning.patch
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
2 changes: 1 addition & 1 deletion
2
upstream_utils/protobuf_patches/0011-Avoid-use-of-sprintf.patch
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
2 changes: 1 addition & 1 deletion
2
...ream_utils/protobuf_patches/0012-Suppress-stringop-overflow-warning-false-positives.patch
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
30 changes: 30 additions & 0 deletions
30
upstream_utils/protobuf_patches/0013-Include-WPI-SymbolExports.patch
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Peter Johnson <johnson.peter@gmail.com> | ||
Date: Thu, 23 Nov 2023 10:32:59 -0800 | ||
Subject: [PATCH 13/13] Include WPI SymbolExports | ||
|
||
Also suppress 4275 warning on MSVC. | ||
|
||
This is needed to enable WPILIB_DLLEXPORT from wpimath. | ||
--- | ||
src/google/protobuf/port_def.inc | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc | ||
index 6c6aa1834b0cbf38b16660e6231f24da72157306..dd1798ce8b3806efb26187f4cb91b209498af2f8 100644 | ||
--- a/src/google/protobuf/port_def.inc | ||
+++ b/src/google/protobuf/port_def.inc | ||
@@ -48,6 +48,13 @@ | ||
// detect/prohibit anytime it is #included twice without a corresponding | ||
// #undef. | ||
|
||
+#if __has_include("wpi/SymbolExports.h") | ||
+#include "wpi/SymbolExports.h" | ||
+#ifdef _MSC_VER | ||
+#pragma warning(disable : 4275) | ||
+#endif | ||
+#endif | ||
+ | ||
// The definitions in this file are intended to be portable across Clang, | ||
// GCC, and MSVC. Function-like macros are usable without an #ifdef guard. | ||
// Syntax macros (for example, attributes) are always defined, although |
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