summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1998-02-03 01:40:49 +0000
committermycroft <mycroft@NetBSD.org>1998-02-03 01:40:49 +0000
commit704290aaa1eb592eea71135f1de12fcb3bab3650 (patch)
tree2884c92a2c0ad0a19ccce29b71d801ffab3779ab /lib/libc/stdlib
parentcb5f5779398b50aa615a64d12a5945c92f91955c (diff)
Deal with GCC warning.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/strtoq.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtoq.c b/lib/libc/stdlib/strtoq.c
index 4d9573bbfca..adb9029b82a 100644
--- a/lib/libc/stdlib/strtoq.c
+++ b/lib/libc/stdlib/strtoq.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strtoq.c,v 1.8 1998/01/30 23:38:08 perry Exp $ */
+/* $NetBSD: strtoq.c,v 1.9 1998/02/03 01:45:08 mycroft Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)strtoq.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strtoq.c,v 1.8 1998/01/30 23:38:08 perry Exp $");
+__RCSID("$NetBSD: strtoq.c,v 1.9 1998/02/03 01:45:08 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -67,6 +67,11 @@ _strtoq(nptr, endptr, base)
register int c;
register int neg, any, cutlim;
+#ifdef __GNUC__
+ /* This outrageous construct just to shut up a GCC warning. */
+ (void) &acc; (void) &cutoff;
+#endif
+
/*
* Skip white space and pick up leading +/- sign if any.
* If base is 0, allow 0x for hex and 0 for octal, else