TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Peter Collis
date: 1996-05-06 16:10:00
subject: casting non-void to void

While listening to Paul Edwards Pete heard:casting non-void to void

G'day Paul

 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 ... ?

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

I can't comment on MSC but QC25 compiles the above without warnings
even with warning levels cranked up to 4 (full)

   -=Pete=-


--- OMX/Blue Wave v2.12
* Origin: Gates of Hell (3:713/914.16)
SEEN-BY: 50/99 78/0 620/243 623/630 711/401 409 410 413 430 808 809 932 934
SEEN-BY: 712/508 515 713/111 317 601 611 615 618 700 826 888 914 714/906
SEEN-BY: 800/1 7877/2809
@PATH: 713/914 615 888 711/808 809 934

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™.