TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: andrew clarke
from: Paul Edwards
date: 1996-05-02 09:01:26
subject: casting non-void to void

ac> Has anyone experienced the sort of compiler behaviour Vince mentions?  eg.

ac>   char *dest, *srce;
ac>   strcpy(dest, srce);

ac> gives a warning but

ac>   char *dest, *srce;
ac>   (void) strcpy(dest, srce);

ac> does not ... ?

I think so, but not recently.  In my experience, lint, microsoft c
and cset/2 produce the most ridiculous errors known to man.

Borland C++ 3.1 for DOS produces the best by far.  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™.