File: fix-unused-value.patch

package info (click to toggle)
grub2 2.06-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 63,180 kB
  • sloc: ansic: 410,027; asm: 16,253; sh: 9,855; cpp: 2,049; makefile: 1,552; python: 1,468; sed: 427; lex: 393; yacc: 268; awk: 79; lisp: 50; perl: 31
file content (14 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/lib/regexec.c	2020-10-21 14:25:35.310195912 +0000
+++ b/lib/regexec.c	2020-10-21 14:32:07.961765604 +0000
@@ -828,7 +828,11 @@
 		    break;
 		  if (__glibc_unlikely (err != REG_NOMATCH))
 		    goto free_return;
+#ifdef DEBUG
+		  /* Only used for assertion below when DEBUG is set, otherwise
+		     it will be over-written when we loop around.  */
 		  match_last = -1;
+#endif
 		}
 	      else
 		break; /* We found a match.  */