systemtap/systemtap-fix-strict-prototypes-in-autoconf-stack-trace-save-regs.c.patch
Tony Jones b48f10e425 - Resolve protoype issue when invoking tracebacks (bsc#1161296)
Also dependent fix to handle GCC fallthrough
  New patch: systemtap-fix-strict-prototypes-in-autoconf-stack-trace-save-regs.c.patch
  New patch: systemtap-amend-fallback-comment-to-work-with-newer-gcc.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=122
2020-02-03 23:48:47 +00:00

22 lines
756 B
Diff

From: Craig Ringer <craig.ringer@2ndquadrant.com>
Date: Sun Dec 29 14:51:47 2019 -0500
Subject: fix strict-prototypes in autoconf-stack-trace-save-regs.c
Git-commit: 3d571c2ab5797b41d07b51a7bbff626270d1e263
References: bsc#1161296
Signed-off-by: Tony Jones <tonyj@suse.de>
PR25265: fix strict-prototypes nit autoconf-stack-trace-save-regs.c
diff --git a/runtime/linux/autoconf-stack-trace-save-regs.c b/runtime/linux/autoconf-stack-trace-save-regs.c
index 8bf33391f..1fd515f8f 100644
--- a/runtime/linux/autoconf-stack-trace-save-regs.c
+++ b/runtime/linux/autoconf-stack-trace-save-regs.c
@@ -1,6 +1,6 @@
#include <linux/stacktrace.h>
-unsigned int foo ()
+unsigned int foo (void)
{
unsigned long e[10];
struct pt_regs* r = 0;