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/40acc2de311c
branches: trunk
changeset: 984200:40acc2de311c
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 93fef2cf853c -r 40acc2de311c 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 @@
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