Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.physics > #566342
| Path | csiph.com!xmission!news.alt.net!not-for-mail |
|---|---|
| From | owl <owl@rooftop.invalid> |
| 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 | <ghnvmuc3.arae@rooftop.invalid> (permalink) |
| 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}> |
| 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 |
Cross-posted to 4 groups.
Show key headers only | View raw
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$
Back to sci.physics | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Eternal-September Motzarella Aioe Dizum Albasani Jeff-Relf.Me <@.> - 2016-03-27 09:21 -0700
Re: Eternal-September Motzarella Aioe Dizum Albasani Nobody <nobody@nowhere.net> - 2016-03-27 12:25 -0400
Eternal-September Motzarella Aioe Dizum Albasani Jeff-Relf.Me <@.> - 2016-03-27 09:51 -0700
Usenet, eMail, CraigsList, WikiPedia, etc. allow <PRE>. Jeff-Relf.Me <@.> - 2016-03-27 10:13 -0700
Re: Usenet, eMail, CraigsList, WikiPedia, etc. allow <PRE>. benj <none@gmail.com> - 2016-03-28 00:55 -0400
Re: Usenet, eMail, CraigsList, WikiPedia, etc. allow <PRE>. jimp@specsol.spam.sux.com - 2016-03-28 05:57 +0000
Re: Eternal-September Motzarella Aioe Dizum Albasani Poutnik <poutnik4nntp@gmail.com> - 2016-03-27 22:04 +0200
Re: Eternal-September Motzarella Aioe Dizum Albasani tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2016-03-27 19:53 -0400
Re: Eternal-September Motzarella Aioe Dizum Albasani chrisv <chrisv@nospam.invalid> - 2016-03-28 07:23 -0500
Re: Eternal-September Motzarella Aioe Dizum Albasani Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-03-28 01:59 +0200
Re: Eternal-September Motzarella Aioe Dizum Albasani chrisv <chrisv@nospam.invalid> - 2016-03-28 07:44 -0500
My code only does what _I_ want, not what "you" want. Jeff-Relf.Me <@.> - 2016-03-28 06:15 -0700
My code only does what _I_ want, not what "you" want. Jeff-Relf.Me <@.> - 2016-03-28 06:17 -0700
Re: My code only does what _I_ want, not what "you" want. owl <owl@rooftop.invalid> - 2016-03-28 19:33 +0000
Re: My code only does what _I_ want, not what "you" want. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-03-28 23:41 +0200
How could defining a variable, and not using it, be a problem ? Jeff-Relf.Me <@.> - 2016-03-28 14:52 -0700
Re: How could defining a variable, and not using it, be a problem ? Somebody <somebody@nowhere.net> - 2016-03-28 18:01 -0400
Re: How could defining a variable, and not using it, be a problem ? Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-03-29 00:25 +0200
Re: How could defining a variable, and not using it, be a problem ? Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-03-28 18:30 -0400
Re: How could defining a variable, and not using it, be a problem ? Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-03-29 00:50 +0200
Re: How could defining a variable, and not using it, be a problem ? Somebody <somebody@nowhere.net> - 2016-03-28 18:54 -0400
Re: How could defining a variable, and not using it, be a problem ? Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-03-28 21:10 -0400
Peter Kohlmann has brain damage, I think. Jeff-Relf.Me <@.> - 2016-03-28 15:53 -0700
Re: Peter Kohlmann has brain damage, I think. owl <owl@rooftop.invalid> - 2016-03-28 23:32 +0000
Re: My code only does what _I_ want, not what "you" want. chrisv <chrisv@nospam.invalid> - 2016-03-29 07:24 -0500
csiph-web