| Liste des Groupes | Revenir à cl c |
On Tue, 18 Mar 2025 23:52:20 -0700, Tim Rentsch wrote:
>(Kenny McCormack) writes:>
>David Brown 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.
>Wouldn't it just be easier and clearer to write: int a = 0;>
and be done with it?
There are two problems: one, the semantics are different; and
two, the impression given of the author's intent is different.
It's kind of like saying "isn't it just easier and clearer to
write 'red' rather than 'yellow'?" Writing 'int a = 0;' might be
better or it might be worse, depending on one's point of view,
but it shouldn't be considered either more clear or less clear,
because it isn't saying the same thing.
int a=a;
for me initialize "a" variable with a value the compiler found
right as in
>
int a;
>
only possibly silence compiler warning for variable not
initializated
| Date | Sujet | # | Auteur | |
| 18 Mar 25 | Bart's Language | 57 | bart | |
| 18 Mar 25 | ![]() Re: Bart's Language | 56 | Waldek Hebisch | |
| 18 Mar 25 | ![]() ![]() Re: Bart's Language | 55 | bart | |
| 18 Mar 25 | ![]() ![]() ![]() Re: Bart's Language | 54 | Waldek Hebisch | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() Re: Bart's Language | 46 | bart | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 36 | David Brown | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() int a = a (Was: Bart's Language) | 35 | Kenny McCormack | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 25 | Janis Papanagnou | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 1 | Kaz Kylheku | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 23 | David Brown | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 1 | Kaz Kylheku | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 14 | Keith Thompson | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 12 | Tim Rentsch | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 11 | Keith Thompson | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 8 | David Brown | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 7 | Keith Thompson | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 6 | David Brown | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 5 | Keith Thompson | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 1 | David Brown | |
| 22 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 3 | Tim Rentsch | |
| 22 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 2 | Keith Thompson | |
| 28 Apr 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 1 | Tim Rentsch | |
| 29 Apr 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 2 | Tim Rentsch | |
| 29 Apr 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 1 | Keith Thompson | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 1 | David Brown | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 5 | Chris M. Thomasson | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 4 | David Brown | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 3 | bart | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 2 | David Brown | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 1 | wij | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 2 | Tim Rentsch | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 1 | David Brown | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 3 | David Brown | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 2 | Janis Papanagnou | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 1 | David Brown | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 6 | Tim Rentsch | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 2 | Keith Thompson | |
| 27 Apr 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a | 1 | Tim Rentsch | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 1 | David Brown | |
| 19 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 2 | Rosario19 | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: int a = a (Was: Bart's Language) | 1 | Tim Rentsch | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 9 | Waldek Hebisch | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 8 | Keith Thompson | |
| 22 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 5 | Waldek Hebisch | |
| 22 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 4 | James Kuyper | |
| 22 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 2 | Waldek Hebisch | |
| 23 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 1 | James Kuyper | |
| 23 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() By definition... (Was: Bart's Language) | 1 | Kenny McCormack | |
| 27 Apr 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 2 | Tim Rentsch | |
| 27 Apr 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 1 | Keith Thompson | |
| 18 Mar 25 | ![]() ![]() ![]() ![]() Re: Bart's Language | 7 | bart | |
| 20 Mar 25 | ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 6 | Waldek Hebisch | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 4 | Kaz Kylheku | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 3 | bart | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 2 | Kaz Kylheku | |
| 22 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 1 | Tim Rentsch | |
| 21 Mar 25 | ![]() ![]() ![]() ![]() ![]() ![]() Re: Bart's Language | 1 | bart |
Les messages affichés proviennent d'usenet.