Fixes to Common Deprecation Warnings
From XCore Exchange
Contents |
Release 10.04
Language token clock deprecated
Example warning:
smi.h:60:15: warning: language type `clock' is deprecated smi.h:60:15: warning: clock type is now defined in xs1.h
This occurs when clock is found, but xs1.h has not been included.
#include "xs1.h"
above the first occurrence of clock in a file, to prevent this warning.
Use of stdcore array without -target option deprecated
Example warning:
.././../module_ethernet/src/server/getmac.xc:52:1: warning: stdcore array used with no -target option specified.
Suggestion
Suggestion here
Report switch changes - --show-report deprecated
xcc: warning: --show-report is deprecated, use -report instead
Edit your Makefile(s) by replacing --show-report with -report
