[False asumption, sorry!] Unused functions are compiled, how to avoid this?

guix:
Just a simple question, I noticed if a function is not used anywhere (never called), it is still compiled. In another language that I use frequently (PAWN), there is the prefix keyword "stock", that tells the compiler "if the function is not used anywhere, do not include it".

Example code please, and proof this happens.