SW500009 Microchip Technology, SW500009 Datasheet - Page 336

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
If you do intend to use an expression like this, then indicate that this is so by a cast:
(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.
322
int * ip;
int i;
i = ip;
i = (int)ip;
long input;
char * cp;
cp = &input; /* is this correct? */
cp = (char *)&input; /* that’s better */
char * cp;
/* yes, but what sort of characters? */
cp = “I am a string of characters”;
const char * cp;
cp = “I am a string of characters”; /* that’s better */
/* woops -- did you mean i = *ip ? */
Error and Warning Messages
(Parser)

Related parts for SW500009