Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Compat_RunCommand mark bp volatile
details: https://anonhg.NetBSD.org/src/rev/0ba5881ec8ad
branches: trunk
changeset: 374575:0ba5881ec8ad
user: sjg <sjg%NetBSD.org@localhost>
date: Thu May 04 22:31:17 2023 +0000
description:
Compat_RunCommand mark bp volatile
gcc 4.8.5 (NetBSD 7.2) gets upset about bp.
diffstat:
usr.bin/make/compat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fb2df3f9a71e -r 0ba5881ec8ad usr.bin/make/compat.c
--- a/usr.bin/make/compat.c Thu May 04 18:34:55 2023 +0000
+++ b/usr.bin/make/compat.c Thu May 04 22:31:17 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat.c,v 1.246 2023/03/18 22:20:11 sjg Exp $ */
+/* $NetBSD: compat.c,v 1.247 2023/05/04 22:31:17 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -91,7 +91,7 @@
#include "pathnames.h"
/* "@(#)compat.c 8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: compat.c,v 1.246 2023/03/18 22:20:11 sjg Exp $");
+MAKE_RCSID("$NetBSD: compat.c,v 1.247 2023/05/04 22:31:17 sjg Exp $");
static GNode *curTarg = NULL;
static pid_t compatChild;
@@ -221,7 +221,7 @@ bool
Compat_RunCommand(const char *cmdp, GNode *gn, StringListNode *ln)
{
char *cmdStart; /* Start of expanded command */
- char *bp;
+ char *volatile bp;
bool silent; /* Don't print command */
bool doIt; /* Execute even if -n */
volatile bool errCheck; /* Check errors */
Home |
Main Index |
Thread Index |
Old Index