This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Request to remove 'value computed is not used' warning



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]