summaryrefslogtreecommitdiff
path: root/package/ltrace/patches/patch-breakpoints_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/ltrace/patches/patch-breakpoints_c')
-rw-r--r--package/ltrace/patches/patch-breakpoints_c14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/ltrace/patches/patch-breakpoints_c b/package/ltrace/patches/patch-breakpoints_c
new file mode 100644
index 000000000..0c8d77c8b
--- /dev/null
+++ b/package/ltrace/patches/patch-breakpoints_c
@@ -0,0 +1,14 @@
+--- ltrace-0.7.3.orig/breakpoints.c 2013-09-09 11:46:54.000000000 +0200
++++ ltrace-0.7.3/breakpoints.c 2013-10-16 11:26:00.000000000 +0200
+@@ -159,9 +159,10 @@ int
+ breakpoint_clone(struct breakpoint *retp, struct Process *new_proc,
+ struct breakpoint *bp, struct Process *old_proc)
+ {
++ __attribute__((unused))int rc;
+ struct library_symbol *libsym = NULL;
+ if (bp->libsym != NULL) {
+- int rc = proc_find_symbol(new_proc, bp->libsym, NULL, &libsym);
++ rc = proc_find_symbol(new_proc, bp->libsym, NULL, &libsym);
+ assert(rc == 0);
+ }
+