This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for various warnings in gcc
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: ghazi at caip dot rutgers dot edu (Kaveh R. Ghazi)
- Cc: dave dot anglin at nrc dot ca, matz at suse dot de, gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Aug 2002 11:57:27 -0400 (EDT)
- Subject: Re: Patch for various warnings in gcc
> int main()
> {
> int a = a;
>
> return a;
> }
I tried it under HP cc (hpux10.20) and VAX Ultrix pcc, with and without "-O".
All compile without error and execute returning a status of 0, except
for HP cc at -O:
507 (hiauly1)dave> cc -o self -O self.c
cc: line 5: warning 5004: Uninitialized variable "a" in function "main" (5004)
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)