Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: fix uninitialized variable for dec...
details: https://anonhg.NetBSD.org/src/rev/9050855a9a3b
branches: trunk
changeset: 379922:9050855a9a3b
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jun 27 18:19:13 2021 +0000
description:
lint: fix uninitialized variable for declaration after statement
diffstat:
usr.bin/xlint/lint1/cgram.y | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r f5b991a6fc2f -r 9050855a9a3b usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sun Jun 27 18:03:05 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sun Jun 27 18:19:13 2021 +0000
@@ -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;
}
;
Home |
Main Index |
Thread Index |
Old Index