Module Name:    src
Committed By:   rillig
Date:           Sun Jun 27 18:19:13 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: fix uninitialized variable for declaration after statement


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/usr.bin/xlint/lint1/cgram.y

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/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.233 src/usr.bin/xlint/lint1/cgram.y:1.234
--- src/usr.bin/xlint/lint1/cgram.y:1.233	Sun Jun 27 18:03:05 2021
+++ src/usr.bin/xlint/lint1/cgram.y	Sun Jun 27 18:19:13 2021
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.233 2021/06/27 18:03:05 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.234 2021/06/27 18:19:13 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.233 2021/06/27 18:03:05 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.234 2021/06/27 18:19:13 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1608,7 +1608,7 @@ block_item_list:
 		if (!Sflag && $1 && !$2)
 			/* declarations after statements is a C99 feature */
 			c99ism(327);
-		/* TODO: $$ = $1 || $2; */
+		$$ = $1 || $2;
 	}
 	;
 

Reply via email to