summaryrefslogtreecommitdiff
path: root/package/ltrace/patches/patch-breakpoints_c
blob: 0c8d77c8b65a04b62bd633e1ba03b613f7120d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
 	}