Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!news-spur1.glorb.com!newsread.glorb.com!.POSTED!not-for-mail From: Jeff-Relf.Me <@.> Newsgroups: comp.os.linux.advocacy,sci.physics,alt.free.newsservers,news.software.readers Subject: How could defining a variable, and not using it, be a problem ? Date: Mon, 28 Mar 2016 14:52:02 -0700 (Seattle) Organization: Glorb Internet Services, http://www.glorb.com Lines: 18 Message-ID: References: <3382742e-7219-4aa1-93cd-d43a78cb6760@googlegroups.com> 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 Xref: csiph.com comp.os.linux.advocacy:347878 sci.physics:566318 alt.free.newsservers:47712 news.software.readers:29257 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.