This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Request to remove 'value computed is not used' warning
- To: egcs-bugs at cygnus dot com
- Subject: Request to remove 'value computed is not used' warning
- From: Jason Gunthorpe <jgg at gpu dot srv dot ualberta dot ca>
- Date: Fri, 5 Dec 1997 17:01:02 -0700 (MST)
Hi,
egcs now generates warnings for code like:
new Something;
'warning: value computed is not used'
I think the warning is improper and should not be given if the expression
has side effects. In this case the result of new -IS- used, the object
links itself into a tree. The caller does not need the result!
The clients of my widget library get about 50 of these per file.
Technically if
new Something;
Generates the error then also
atoi("1");
Should too, the 'computed value is not used'.
Can this be fixed in the next snapshot/release? BTW, is there any official
bug list for egcs or do all these posts just go into the bitbucket?
Thanks,
Jason