Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] PATCH: Fix "warning: value computed is not use
05-31-2011, 06:38 PM,
#1
[SOLVED] PATCH: Fix "warning: value computed is not use
Fix return value not used warning by appending void before the desired expression. See http://publib.boulder.ibm.com/infocenter...rhvcu.html for more info.

Patch: http://www.mediafire.com/file/ca71hp3z4x...used.patch
Reply
06-01-2011, 05:09 PM,
#2
 
Quote:warning: value computed is not used
It is not a function but a variable being incremented. Prepending a void cast to it is rather irritating.
Reply
06-01-2011, 06:13 PM,
#3
 
But it fixes the warning and works. The thing is that I think that a clean compilation is needed. I know that prepending void casts is ugly but needed in order to keep clean outputs and detecting fails. If you leave this you'll end with 500 warnings in your code. Someone has to fix them. Thanks
Reply
06-01-2011, 10:37 PM,
#4
 
I agree with NaN. If a clean compile is required, we can disable that warning.
Reply
06-02-2011, 09:40 AM,
#5
 
joevenzon Wrote:I agree with NaN. If a clean compile is required, we can disable that warning.

Evaluate what is what you need: http://tigcc.ticalc.org/doc/faq.html#99

I think that will fix a bug or a warning Smile
Reply
06-03-2011, 06:29 PM,
#6
 
Have had a look to that? Thanks!
Reply
06-05-2011, 06:28 AM,
#7
 
SOLVED. Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)