SW500007 Microchip Technology, SW500007 Datasheet - Page 353

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
Error and Warning Messages
(353) sizeof external array "*" is zero
The size of an external array evaluates to zero. This is probably due to the array not having an
explicit dimension in the extern declaration.
(354) possible pointer truncation
A pointer qualified far has been assigned to a default pointer or a pointer qualified near, or a default
pointer has been assigned to a pointer qualified near. This may result in truncation of the pointer and
loss of information, depending on the memory model in use.
(355) implicit signed to unsigned conversion
A signed number is being assigned or otherwise converted to a larger unsigned type. Under the
ANSI "value preserving" rules, this will result in the signed value being first sign-extended to a
signed number the size of the target type, then converted to unsigned (which involves no change
in bit pattern). Thus an unexpected sign extension can occur. To ensure this does not happen, first
convert the signed value to an unsigned equivalent, e.g.:
will perform a sign extension of the char variable to the longer type. If you do not want this to take
place, use a cast, e.g.:
(356) implicit conversion of float to integer
A floating point value has been assigned or otherwise converted to an integral type. This could result
in truncation of the floating point value. A typecast will make this warning go away.
double inc_flt(f) /* the parameter f will be converted to double type */
float f;
{
}
signed char sc;
unsigned int ui;
ui = sc;
ui = (unsigned char)sc;
return f * 2;
/* if sc contains 0xff, ui will contain 0xffff for example */
/* warning flagged here */
(Parser)
(Parser)
(Parser)
(Parser)
339

Related parts for SW500007