Forums

Full Version: [SOLVED] PATCH: Fix "warning: value computed is not use
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
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
I agree with NaN. If a clean compile is required, we can disable that warning.
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
Have had a look to that? Thanks!
SOLVED. Smile