Path: 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 /* Version: * gcc version 1.35 * File: * * Compile with: * gcc -O -Wall -c * Problem: * `gcc' emits a spurious warning message. * Output: * : In function foo: * :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); }