TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: andrew clarke
from: Paul Edwards
date: 1996-05-15 03:38:36
subject: casting non-void to void

ac> The most perplexing warning I've come across lately was from WATCOM C while 
ac> compiling the Binkley 2.60 source code.  "Pointer
truncated".  The BTPE 
ac> diffs came in handy there (thanks!), but only after I had worked out what 

Was that the far pointers?

ac> the problem was.  Took me a while.  It'd be nice to see a compiler that not 
ac> only displayed the source code line where there is a compiler error or 
ac> warning, but also the column.  A la Borland Pascal... 

I've just tried my 4 main C compilers for OS/2, and only CSET
does that...

#include 

int main(void)
{
    printf("There is a strange" FRED);
    return (0);
}

zatest.c(5:33) : error EDC0349: Unexpected text FRED ignored.


BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.