Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Initialize endc unconditionally, gcc complains ...



details:   https://anonhg.NetBSD.org/src/rev/028a013c921e
branches:  trunk
changeset: 954911:028a013c921e
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 13 09:35:09 2020 +0000

description:
Initialize endc unconditionally, gcc complains and it is not obvious
whether this is a false positive.

diffstat:

 usr.bin/make/var.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r b657f82486fa -r 028a013c921e usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sun Sep 13 09:25:52 2020 +0000
+++ b/usr.bin/make/var.c        Sun Sep 13 09:35:09 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.509 2020/09/13 08:17:14 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.510 2020/09/13 09:35:09 martin Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.509 2020/09/13 08:17:14 rillig Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.510 2020/09/13 09:35:09 martin Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.509 2020/09/13 08:17:14 rillig Exp $");
+__RCSID("$NetBSD: var.c,v 1.510 2020/09/13 09:35:09 martin Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -3467,11 +3467,9 @@
     extramodifiers = NULL;     /* extra modifiers to apply first */
     dynamic = FALSE;
 
-#ifdef USE_DOUBLE_BOOLEAN
-    /* Appease GCC 5.5.0, which thinks that the variable might not be
+    /* Appease GCC, which thinks that the variable might not be
      * initialized. */
     endc = '\0';
-#endif
 
     startc = start[1];
     if (startc != PROPEN && startc != BROPEN) {



Home | Main Index | Thread Index | Old Index