Article View: news.software.readers
Article #260025Re: How could defining a variable, and not using it, be a problem ?
From: Somebody
Date: Mon, 28 Mar 2016 22:01
Date: Mon, 28 Mar 2016 22:01
22 lines
2116 bytes
2116 bytes
On Mon, 28 Mar 2016 14:52:02 -0700 (Seattle), Jeff-Relf.Me wrote: > 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. Do you toke?
Technical Details
Message-ID:
<ndc9e6$u0e$1@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-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> <Jeff-Relf.Me@Mar.28{2.52P.Seattle.2016}>Show Full Headers
Complete Article Headers
Message-ID: <ndc9e6$u0e$1@dont-email.me>
Subject: Re: How could defining a variable, and not using it, be a problem ?
Date: Mon, 28 Mar 2016 18:01:40 -0400
From: Somebody <somebody@nowhere.net>
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> <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-mail
Newsgroups: comp.os.linux.advocacy,sci.physics,alt.free.newsservers,news.software.readers
Organization: Yes
Lines: 22
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Mar 2016 21:58:30 -0000 (UTC)
Injection-Info: mx02.eternal-september.org; posting-host="1ab71f9efbdd66785a8ee9e31cf301e5";
logging-data="30734"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YiB/aqyjSlTqBaIAzDmFXvwUyzDbekHA="
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:9ZiFeMpmP6epaOEIuFOjCjL4J8Q=
X-Received-Body-CRC: 2900748433
X-Received-Bytes: 2154