Page 1 of 1

Warning unreferenced functions removed

Posted: Wed Nov 16, 2011 9:08 pm
by Dmitry Maximenko
Hi
I have various different warnings when I compile my program.
Is it normal or have I done something wrong?
"
Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_Ms in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCD_ADC0_ReadAsByte in: C:\Documents and Settings\Admin\Desktop\5A_V5.c
FCD_ADC0_ReadAsVoltage in: C:\Documents and Settings\Admin\Desktop\5A_V5.c
FCD_ADC0_ReadAsString in: C:\Documents and Settings\Admin\Desktop\5A_V5.c
FCD_ADC1_ReadAsByte in: C:\Documents and Settings\Admin\Desktop\5A_V5.c
FCD_ADC1_ReadAsVoltage in: C:\Documents and Settings\Admin\Desktop\5A_V5.c
FCD_ADC1_ReadAsString in: C:\Documents and Settings\Admin\Desktop\5A_V5.c
FCD_PWM0_SetDutyCycle in: C:\Documents and Settings\Admin\Desktop\5A_V5.c
FCD_PWM0_ChangePeriod in: C:\Documents and Settings\Admin\Desktop\5A_V5.c

Warning: function never returns: 'FCM_Error'
Building CASM file
Memory Usage Report
===================
RAM available:384 bytes, used:61 bytes (15.9%), free:323 bytes (84.1%),
Heap size:304 bytes, Heap max single alloc:95 bytes
ROM available:4096 words, used:2017 words (49.3%), free:2079 words (50.7%)



success

Return code = 0

FINISHED"

Best Regards
Dmitry

Re: Warning unreferenced functions removed

Posted: Wed Nov 16, 2011 9:44 pm
by JohnCrow
Hi Dmitry
You see this with anything more than a very simple flowchart.

It's not normally any cause for concern.
I think its basically saying that the parts of the libraries your flowchart is calling that are not needed have been removed from the final code.

Re: Warning unreferenced functions removed

Posted: Wed Nov 16, 2011 10:01 pm
by medelec35
Hi Dmitry,
I would just like to add:

Code: Select all

Warning: function never returns: 'FCM_Error'
What that means is when macro named Error is accessed, the program will keep looping within that macro, so will never exit and go to Main macro.
If you have done that deliberately, then it's nothing to worry about at all.

Martin