Path: csiph.com!xmission!news.alt.net!not-for-mail From: owl Newsgroups: comp.os.linux.advocacy,sci.physics,alt.free.newsservers,news.software.readers Subject: Re: Peter Kohlmann has brain damage, I think. Date: Mon, 28 Mar 2016 23:32:47 +0000 (UTC) Organization: O.W.L. Lines: 44 Message-ID: References: NNTP-Posting-Host: boom.rooftop.invalid Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.16.0-4-amd64 (x86_64)) Xref: csiph.com comp.os.linux.advocacy:347927 sci.physics:566342 alt.free.newsservers:47719 news.software.readers:29264 In comp.os.linux.advocacy Jeff-Relf.Me <@.> wrote: > You (PeterKöhlmann) wrote: >> It is *never* a good idea to use unreferenced variables, > ^^^ > Again, an "unreferenced variable" ( warning C4101 ) > is a variable that's declared but NOT USED. > > Declaring a variable, or even a bunch of variables, > then not using them, perhaps because you've temporarily > commented out some code, is NEVER a problem. > > You've never made any sense Pete, not once, > not in all your decades of posting here. > Honestly, I think you have brain damage. anon@lowtide:~/code$ gcc -Wall -o warn1 warn1.c anon@lowtide:~/code$ gcc -Wall -o warn2 warn2.c warn2.c: In function ‘blah’: warn2.c:19:6: warning: unused variable ‘x’ [-Wunused-variable] int x=4; ^ anon@lowtide:~/code$ ./warn1 x: 0 y: 4 sum: 4 anon@lowtide:~/code$ ./warn2 x: 0 y: 0 sum: 0 anon@lowtide:~/code$ anon@lowtide:~/code$ diff -u warn1.c warn2.c --- warn1.c 2016-03-28 19:25:07.362314096 -0400 +++ warn2.c 2016-03-28 19:25:29.474314499 -0400 @@ -17,6 +17,6 @@ void blah(void) { int x=4; - y=x; +/* y=x; */ } anon@lowtide:~/code$