Deal with GCC warning.

This commit is contained in:
mycroft 1998-02-03 01:40:49 +00:00
parent cb5f577939
commit 704290aaa1
2 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fseek.c,v 1.12 1998/01/19 07:38:48 jtc Exp $ */
/* $NetBSD: fseek.c,v 1.13 1998/02/03 01:40:49 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)fseek.c 8.3 (Berkeley) 1/2/94";
#else
__RCSID("$NetBSD: fseek.c,v 1.12 1998/01/19 07:38:48 jtc Exp $");
__RCSID("$NetBSD: fseek.c,v 1.13 1998/02/03 01:40:49 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -72,6 +72,11 @@ fseek(fp, offset, whence)
struct stat st;
int havepos;
#ifdef __GNUC__
/* This outrageous construct just to shut up a GCC warning. */
(void) &curoff;
#endif
/* make sure stdio is set up */
if (!__sdidinit)
__sinit();

View File

@ -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