Optimizer warning and error messages – Zilog ZUSBOPTS User Manual
Page 235

UM017105-0511
Warning and Error Messages
Zilog Developer Studio II – ZNEO™
User Manual
207
208 Operands are not cast compatible.
An attempt was made to cast a variable to an
incompatible type, for example, casting a _Far pointer to a _Near pointer.
209 Ignoring space specifier (e.g. near, far) on function.
An attempt was made to des-
ignate a function as a _Near or a _Far function.
210 Invalid use of placement or alignment option.
An attempt was made to use a
placement or alignment option on a local or parameter.
212 No previous use of placement or alignment options.
An attempt was made to use
the _At … directive without any previous use of the _At address directive.
213 Function "
An attempt was made to return from a
non void function without providing a return value.
214 Function return type defaults to int.
The return type of the function was not speci-
fied so the default return type was assumed. A function that does not return anything
should be declared as void.
215 Signed/unsigned mismatch.
An attempt was made to assign a pointer to a signed
type with a pointer to an unsigned type and vice versa.
Optimizer Warning and Error Messages
250 Missing format parameter to (s)printf.
This message is generated when a call to
printf or sprintf is missing the format parameter and the inline generation of printf calls is
requested. For example, a call of the form
printf();
251 Cannot preprocess format to (s)printf.
This message is generated when the format
parameter to printf or sprintf is not a string literal and the inline generation of printf calls is
requested. For example, the following code causes this warning:
static char msg1 = "x = %4d";
char buff[sizeof(msg1)+4];
sprintf(buff,msg1,x); // WARNING HERE
This warning is generated because the line of code is processed by the real printf or sprintf
function, so that the primary goal of the inline processing, reducing the code size by
removing these functions, is not met.
When this message is displayed, you have three options:
•
Deselect the
Generate Printfs Inline
checkbox (see
page 58) so that all calls to
printf
and
sprintf
are handled by the real
printf
or
sprintf
functions.