Sujet : Re: int a = a (Was: Bart's Language)
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.cDate : 19. Mar 2025, 11:43:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vre74s$lb74$2@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 19/03/2025 07:52, Tim Rentsch wrote:
gazelle@shell.xmission.com (Kenny McCormack) writes:
In article <vrc75b$2r4lt$1@dont-email.me>,
David Brown <david.brown@hesbynett.no> wrote:
...
>
gcc won't warn until you say '-Wextra', and then only for:
>
int a = a + 1;
>
People would not normally write "int a = a;". It is used as a
common idiom meaning "I know it is not clear to the compiler that
the variable is always initialised before use, but /I/ know it is -
so disable the use-without-initialisation warnings for this
variable". So it makes perfect sense for the compiler not to warn
about it!
An addle-brained view. Anyone who thinks that should be forcibly
removed from any activity involving software development.
I think this is the first time in years that you have quoted me, keeping the attribution in place, and replied to directly to the quoted part. Unsurprisingly, it looks like you put more effort into thinking up a "cool" insult than into reading what I actually wrote.
I look forward to your next well-considered reply, perhaps some time in the autumn.