Thread View: gnu.gcc.help
2 messages
2 total messages
Started by John Hight
Wed, 04 Nov 1992 01:48
gcc 2.2.2 and cp-decl.c
Author: John Hight
Date: Wed, 04 Nov 1992 01:48
Date: Wed, 04 Nov 1992 01:48
18 lines
1083 bytes
1083 bytes
While compiling gcc 2.2.2 I get the following error on cp-decl.c: >stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-decl.c cp-decl.c: In function `hack_incomplete_structures': cp-decl.c:10584: warning: comparison is always 1 due to limited range of data type The line in question follows: 10583: --current_binding_level->n_incomplete; 10584: assert (current_binding_level->n_incomplete >= 0); 10585: } Anybody have any ideas on whether or not I can ignore the warning? -- John Hight, SRI International hight@sri.com 415-859-4279
Re: gcc 2.2.2 and cp-decl.c
Author: David Binderman 3841
Date: Wed, 04 Nov 1992 13:48
Date: Wed, 04 Nov 1992 13:48
22 lines
1269 bytes
1269 bytes
hight@sri.com (John Hight) writes: : While compiling gcc 2.2.2 I get the following error on cp-decl.c: : : cp-decl.c: In function `hack_incomplete_structures': : cp-decl.c:10584: warning: comparison is always 1 due to limited range : of data type : : Anybody have any ideas on whether or not I can ignore the warning? Probably because n_incomplete field is an unsigned type. If so, remove the assert. Its dead weight. This brings up a bigger subject. Quality of GNU releases. I've been experimenting recently with the -Wall flag on GNU compiler builds. Its interesting to note that many warnings are produced. What possible run time bugs are they flagging ? Regards David C Binderman Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10, D-7000 Stuttgart 40, Germany dcb@us-es.sel.de Tel: +49 711 821 3841
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads