Article View: news.software.readers
Article #260022How could defining a variable, and not using it, be a problem ?
From: Jeff-Relf.Me
Date: Mon, 28 Mar 2016 21:52
Date: Mon, 28 Mar 2016 21:52
18 lines
1826 bytes
1826 bytes
PeterKöhlmann wrote: > > Disabling certain warnings is best, I've found. > > Sometimes I want unreferenced variables, for example, just because. > > I'm using my code, so I know that it works the way I want. > > using "unreferenced variables" is a way for disaster, > and every programmer better than DumbFullSnit should know that How could defining a variable, and not using it, be a problem ? Quoting WikiPedia: << An "unreferenced variable" in the source code of a computer program is a variable that is defined but which is never used. >> C4700 is: uninitialized local variable 'XYZ' used. I don't disable "C4700" warnings.
Technical Details
Message-ID:
<Jeff-Relf.Me@Mar.28{2.52P.Seattle.2016}>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mailReferences:
<3382742e-7219-4aa1-93cd-d43a78cb6760@googlegroups.com> <Jeff-Relf.Me@Mar.27{9.21A.Seattle.2016}> <nd9ru3$751$1@dont-email.me> <ng9ifb57orabua1vr6grldtg8k6m91djvq@4ax.com> <Jeff-Relf.Me@Mar.28{6.17A.Seattle.2016}> <ndc87p$nuh$2@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <Jeff-Relf.Me@Mar.28{2.52P.Seattle.2016}>
Subject: How could defining a variable, and not using it, be a problem ?
Date: Mon, 28 Mar 2016 21:52:02 +0000
From: Jeff-Relf.Me <@.>
References: <3382742e-7219-4aa1-93cd-d43a78cb6760@googlegroups.com> <Jeff-Relf.Me@Mar.27{9.21A.Seattle.2016}> <nd9ru3$751$1@dont-email.me> <ng9ifb57orabua1vr6grldtg8k6m91djvq@4ax.com> <Jeff-Relf.Me@Mar.28{6.17A.Seattle.2016}> <ndc87p$nuh$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mail
Newsgroups: comp.os.linux.advocacy,sci.physics,alt.free.newsservers,news.software.readers
Organization: Glorb Internet Services, http://www.glorb.com
Lines: 18
NNTP-Posting-Host: 2nP6JHkZUVTedcOlt9YIYg.72.posting.glorb.com
Content-Type: Text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@glorb.com
NNTP-Posting-Date: Mon, 28 Mar 2016 21:52:02 +0000 (UTC)
User-Agent: Jeff-Relf.Me/X.ZIP
X-Notice: Scanned by Mr. Bill
X-Received-Body-CRC: 1509537999
X-Received-Bytes: 1790