Article View: news.software.readers
Article #260031Re: Peter Kohlmann has brain damage, I think.
From: owl
Date: Mon, 28 Mar 2016 23:32
Date: Mon, 28 Mar 2016 23:32
43 lines
2232 bytes
2232 bytes
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$
Technical Details
Message-ID:
<ghnvmuc3.arae@rooftop.invalid>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:
<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}> <ndcaqc$684$1@dont-email.me> <Jeff-Relf.Me@Mar.28{3.53P.Seattle.2016}>Show Full Headers
Complete Article Headers
Message-ID: <ghnvmuc3.arae@rooftop.invalid>
Subject: Re: Peter Kohlmann has brain damage, I think.
Date: Mon, 28 Mar 2016 23:32:47 +0000
From: owl <owl@rooftop.invalid>
References: <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}> <ndcaqc$684$1@dont-email.me> <Jeff-Relf.Me@Mar.28{3.53P.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: O.W.L.
Lines: 44
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))
X-Received-Body-CRC: 3921252691
X-Received-Bytes: 2170