patch-breakpoints_c 546 B

1234567891011121314
  1. --- ltrace-0.7.3.orig/breakpoints.c 2013-09-09 11:46:54.000000000 +0200
  2. +++ ltrace-0.7.3/breakpoints.c 2013-10-16 11:26:00.000000000 +0200
  3. @@ -159,9 +159,10 @@ int
  4. breakpoint_clone(struct breakpoint *retp, struct Process *new_proc,
  5. struct breakpoint *bp, struct Process *old_proc)
  6. {
  7. + __attribute__((unused))int rc;
  8. struct library_symbol *libsym = NULL;
  9. if (bp->libsym != NULL) {
  10. - int rc = proc_find_symbol(new_proc, bp->libsym, NULL, &libsym);
  11. + rc = proc_find_symbol(new_proc, bp->libsym, NULL, &libsym);
  12. assert(rc == 0);
  13. }