Module Name:    src
Committed By:   rin
Date:           Wed Aug 14 04:59:51 UTC 2024

Modified Files:
        src/usr.bin/grep: file.c

Log Message:
grep: grep_refill: Fix -Wunused-variable for WITHOUT_GZIP

NFC otherwise.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/grep/file.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/grep/file.c
diff -u src/usr.bin/grep/file.c:1.11 src/usr.bin/grep/file.c:1.12
--- src/usr.bin/grep/file.c:1.11	Fri Apr  5 13:34:41 2019
+++ src/usr.bin/grep/file.c	Wed Aug 14 04:59:51 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: file.c,v 1.11 2019/04/05 13:34:41 christos Exp $	*/
+/*	$NetBSD: file.c,v 1.12 2024/08/14 04:59:51 rin Exp $	*/
 /*	$FreeBSD: head/usr.bin/grep/file.c 211496 2010-08-19 09:28:59Z des $	*/
 /*	$OpenBSD: file.c,v 1.11 2010/07/02 20:48:48 nicm Exp $	*/
 
@@ -35,7 +35,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: file.c,v 1.11 2019/04/05 13:34:41 christos Exp $");
+__RCSID("$NetBSD: file.c,v 1.12 2024/08/14 04:59:51 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -74,7 +74,9 @@ static inline int
 grep_refill(struct file *f)
 {
 	ssize_t nr = -1;
+#ifndef WITHOUT_GZIP
 	int bzerr;
+#endif
 
 	bufpos = buffer;
 	bufrem = 0;

Reply via email to