SW500011 Microchip Technology, SW500011 Datasheet - Page 336

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
(363) redundant "&" or "*" applied to function address
The address operator "&" has been applied to a function. Since using the name of a function gives
its address anyway, this is unnecessary and has been ignored, e.g.:
(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.
336
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;
return &c;
void(*bar)(void);
/* both assignments are equivalent */
bar = &foo;
bar = foo; /* the & is redundant */
the pointer could be dereferenced */
/* oops --
writing to a read-only object */
Error and Warning Messages
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500011