Article View: gnu.gcc.bug
Article #2833`gcc' may be producing a spurious warning message.
From: Derek Clegg
Date: Fri, 12 Jan 1990 23:04
Date: Fri, 12 Jan 1990 23:04
28 lines
1152 bytes
1152 bytes
/* Version:
* gcc version 1.36
* File:
* <this file>
* Compile with:
* gcc -c <this file>
* Problem:
* `gcc' may be producing a spurious warning message.
* Output:
* <this file>: In function foo:
* <this file>:27: warning: assignment of pointer from integer lacks a cast
* Notes:
* I would expect that 0 would be silently cast to `(void *)0' in this
* context. However, I may be incorrect.
* 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)
*/
void
foo(void)
{
int k;
void *v;
v = ((k = 1), 0);
}
Technical Details
Message-ID:
<9001122304.AA14068@orkney.island.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CAD.BERKELEY.EDU!island!orkney!derekShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CAD.BERKELEY.EDU!island!orkney!derek From: island!orkney!derek@CAD.BERKELEY.EDU (Derek Clegg) Newsgroups: gnu.gcc.bug Subject: `gcc' may be producing a spurious warning message. Message-ID: <9001122304.AA14068@orkney.island.uucp> Date: 12 Jan 90 23:04:43 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28