SW500009 Microchip Technology, SW500009 Datasheet - Page 338

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
(364) attempt to modify object qualified *
Objects declared const or code may not be assigned to or modified in any other way by your
program. The effect of attempting to modify such an object is compiler-specific.
(365) pointer to non-static object returned
This function returns a pointer to a non-static (e.g. auto) variable. This is likely to be an error,
since the storage associated with automatic variables becomes invalid when the function returns,
e.g.:
(366) operands of "*" not same pointer type
The operands of this operator are of different pointer types. This probably means you have used
the wrong pointer, but if the code is actually what you intended, use a typecast to suppress the error
message.
(367) identifier is already extern; can’t be static
This function was already declared extern, possibly through an implicit declaration. It has now
been redeclared static, but this redeclaration is invalid.
324
extern void foo(void);
void main(void)
{
}
const int out = 1234; /* “out” is read only */
out = 0;
char * get_addr(void)
{
}
char c;
/* returning this is dangerous; the pointer could be dereferenced */
return &c;
void(*bar)(void);
/* both assignments are equivalent */
bar = &foo;
bar = foo; /* the & is redundant */
/* woops -- writing to a read-only object */
Error and Warning Messages
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500009