derek@UUNET.UU.NET (Derek Clegg) (05/03/89)
/* 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);
}