aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-base_strings_safe__sprintf__unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-base_strings_safe__sprintf__unittest.cc')
-rw-r--r--devel/electron13/files/patch-base_strings_safe__sprintf__unittest.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-base_strings_safe__sprintf__unittest.cc b/devel/electron13/files/patch-base_strings_safe__sprintf__unittest.cc
new file mode 100644
index 000000000000..6ad41093b744
--- /dev/null
+++ b/devel/electron13/files/patch-base_strings_safe__sprintf__unittest.cc
@@ -0,0 +1,18 @@
+--- base/strings/safe_sprintf_unittest.cc.orig 2021-01-07 00:36:18 UTC
++++ base/strings/safe_sprintf_unittest.cc
+@@ -730,6 +730,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) {
+ }
+
+ TEST(SafeSPrintfTest, EmitNULL) {
++/* Avoid compiler error: http://pastebin.com/1edWUE84
+ char buf[40];
+ #if defined(__GNUC__)
+ #pragma GCC diagnostic push
+@@ -741,6 +742,7 @@ TEST(SafeSPrintfTest, EmitNULL) {
+ EXPECT_EQ("0x0", std::string(buf));
+ EXPECT_EQ(6, SafeSPrintf(buf, "%s", NULL));
+ EXPECT_EQ("<NULL>", std::string(buf));
++*/
+ #if defined(__GCC__)
+ #pragma GCC diagnostic pop
+ #endif