🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3523

Re: Should C/C++ compilers be smart enough to catch this???

#3523
From: Alex Pavloff
Date: Thu, 03 Apr 2003 21:10
16 lines
1612 bytes
On 3 Apr 2003 19:32:34 GMT, Fred Ma <fma@doe.carleton.ca> wrote:


>Shouldn't compilers be smart enough to
>not create code that corrupts when it is pretty
>straighforward to realize that (1) there is an
>obvious discrepancy, for which a warning can
>easily be issued, or (2) realize that the return
>type really isnt' being used and compile it in a
>way that doesn't create memory corruption?

-Wall is your friend.

-- 
Alex Pavloff - remove BLAH to email
Software Engineer, Eason Technology 
Technical Details
Message-ID: <jp8p8vocp8ck17cmn9jsufm9dj6l70c38k@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!sjc72.webusenet.com!news.webusenet.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mail
References: <3E8C8C4F.ABC60B0F@doe.carleton.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2ca0bb2ef0ae6ada
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,2ca0bb2ef0ae6ada
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2003-04-03 13:15:32 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!sjc72.webusenet.com!news.webusenet.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mail
From: Alex Pavloff <BLAHapavloff@BLAHeason.com>
Newsgroups: comp.unix.programmer,gnu.gcc.help
Subject: Re: Should C/C++ compilers be smart enough to catch this???
Message-ID: <jp8p8vocp8ck17cmn9jsufm9dj6l70c38k@4ax.com>
References: <3E8C8C4F.ABC60B0F@doe.carleton.ca>
X-Newsreader: Forte Agent 1.9/32.560
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 16
Date: Thu, 03 Apr 2003 21:10:27 GMT
NNTP-Posting-Host: 209.204.139.80
X-Complaints-To: abuse@sonic.net
X-Trace: typhoon.sonic.net 1049404227 209.204.139.80 (Thu, 03 Apr 2003 13:10:27 PST)
NNTP-Posting-Date: Thu, 03 Apr 2003 13:10:27 PST