SW500008 Microchip Technology, SW500008 Datasheet - Page 355

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
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
015
778-1001
778-1001
Error and Warning Messages
(359) illegal conversion between pointer types
A pointer of one type (i.e. pointing to a particular kind of object) has been converted into a pointer
of a different type. This will usually mean you have used the wrong variable, but if this is genuinely
what you want to do, use a typecast to inform the compiler that you want the conversion and the
warning will be suppressed, e.g.:
This is common way of accessing bytes within a multi-byte variable. To indicate that this is the
intended operation of the program, use a cast:
This warning may also occur when converting between pointers to objects which have the same type,
but which have different qualifiers, e.g.:
If the default type for string literals is const char *, then this warning is quite valid. This should
be written:
Omitting a qualifier from a pointer type is often disastrous, but almost certainly not what you intend.
(360) array index out of bounds
An array is being indexed with a constant value that is less than zero, or greater than or equal to the
number of elements in the array. This warning will not be issued when accessing an array element
via a pointer variable, e.g.:
long input;
char * cp;
cp = &input; /* is this correct? */
cp = (char *)&input; /* that’s better */
char * cp;
cp = “I am a string of characters”; /* yes, but what sort of characters? */
const char * cp;
cp = “I am a string of characters”; /* that’s better */
int i, * ip, input[10];
i = input[-2];
ip = &input[5];
i = ip[-2];
/* woops -- this element doesn’t exist */
/* this is okay */
(Parser)
(Parser)
341

Related parts for SW500008