aboutsummaryrefslogtreecommitdiff
path: root/depends/patches
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2022-09-13 20:35:56 +0000
committerfanquake <fanquake@gmail.com>2023-01-23 18:12:26 +0000
commitdf7ae8b7ca9cf53357d6a1c6bb70a2e40d2a1017 (patch)
tree1ee6346636f49bcc83a0577722dfb0df3b56e89e /depends/patches
parenta66d82e25f866ee72417fca7adae8feaddc8bdb0 (diff)
depends: systemtap: remove variadic params that trigger compiler warnings
Diffstat (limited to 'depends/patches')
-rw-r--r--depends/patches/systemtap/fix_variadic_warning.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/depends/patches/systemtap/fix_variadic_warning.patch b/depends/patches/systemtap/fix_variadic_warning.patch
new file mode 100644
index 0000000000..93cc2d6081
--- /dev/null
+++ b/depends/patches/systemtap/fix_variadic_warning.patch
@@ -0,0 +1,16 @@
+Could be dropped after a migration to C++20.
+See: https://github.com/bitcoin/bitcoin/issues/26916.
+
+diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h
+index 4075a5f..7c6138c 100644
+--- a/includes/sys/sdt.h
++++ b/includes/sys/sdt.h
+@@ -276,7 +276,7 @@ __extension__ extern unsigned long long __sdt_unsp;
+ _SDT_ASM_1(.purgem _SDT_TYPE_) \
+ _SDT_ASM_1(.purgem _SDT_TYPE)
+
+-#define _SDT_ASM_BODY(provider, name, pack_args, args, ...) \
++#define _SDT_ASM_BODY(provider, name, pack_args, args) \
+ _SDT_DEF_MACROS \
+ _SDT_ASM_1(990: _SDT_NOP) \
+ _SDT_ASM_3( .pushsection .note.stapsdt,_SDT_ASM_AUTOGROUP,"note") \