This is the mail archive of the
mailing list for the GCC project.
Re: a warning to implement
- From: Akim Demaille <akim at epita dot fr>
- To: gcc at gcc dot gnu dot org
- Date: 06 Feb 2002 10:46:48 +0100
- Subject: Re: a warning to implement
- Distribution: world
- Organization: EPITA / LRDE http://www.lrde.epita.fr
- References: <20020205221232.2DB02F28C6@nile.gnat.com>
>>>>> "Robert" == Robert Dewar <email@example.com> writes:
Robert> Gaby, perhaps you could be so kind as to enlighten us with the
Robert> wonderful useful meanings that people argued for
Robert> int a = a;
Robert> perhaps we will be so impressed by the suggestions that we
Robert> will decide to implement one of them, rather than generating a
Robert> warning here. The only suggestion I saw, which was to use this
Robert> construct to turn off warnings, seemed very peculiar and ill
Robert> motivated. In other words, you could artificially make it have
Robert> this meaning, but I would find that most peculiar.
I won't answer about int, but for instance for int *,
int *a = a;
is very helpful: it allows me to introduce distinguished pointers, in
addition to NULL. It's used for instance in the idutils's lib/hash.c.