🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2596

`gcc' emits a spurious warning message.

#2596
From: Derek Clegg
Date: Tue, 02 May 1989 17:43
29 lines
1071 bytes
/* Version:
 *     gcc version 1.35
 * File:
 *     <this file>
 * Compile with:
 *     gcc -O -Wall -c <this file>
 * Problem:
 *     `gcc' emits a spurious warning message.
 * Output:
 *      <this file>: In function foo:
 *      <this file>:28: warning: `a' may be used uninitialized in this function
 * Notes:
 *     gcc was compiled with `config.gcc sun3-os4'.
 *     I am using a Sun 3/60 with UNIX 4.2 (Sun release 4.0.1).
 *
 *		Derek B Clegg ({uunet,ucbcad,sun}!island!derek)
 */
static inline int
bar(int a, int b, int c)
{
    return (a + b + c);
}

void
foo(unsigned char *x, char *y, int w)
{
    while (--w >= 0)
	*y++ = bar(*x, 0, 0);
}
Technical Details
Message-ID: <8905021743.AA10386@M4.island.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!island!M4!derek

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!island!M4!derek
From: island!M4!derek@UUNET.UU.NET (Derek Clegg)
Newsgroups: gnu.gcc.bug
Subject: `gcc' emits a spurious warning message.
Message-ID: <8905021743.AA10386@M4.island.uucp>
Date: 2 May 89 17:43:42 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 29