SW500009 Microchip Technology, SW500009 Datasheet - Page 337

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
Error and Warning Messages
(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.:
(361) function declared implicit int
Where the compiler encounters a function call of a function whose name is presently undefined, the
compiler will automatically declare the function to be of type int, with unspecified (K&R style)
parameters. If a definition of the function is subsequently encountered, it is possible that its type
and arguments will be different from the earlier implicit declaration, causing a compiler error. The
solution is to ensure that all functions are defined or at least declared before use, preferably with
prototyped parameters. If it is necessary to make a forward declaration of a function, it should be
preceded with the keywords extern or static as appropriate. For example:
(362) redundant "&" applied to array
The address operator & has been applied to an array. Since using the name of an array gives its
address anyway, this is unnecessary and has been ignored, e.g.:
(363) redundant "&" applied to function
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.:
int i, * ip, input[10];
i = input[-2];
ip = &input[5];
i = ip[-2];
/* I may prevent an error arising from calls below */
void set(long a, int b);
void main(void)
{
}
int array[5];
int * ip;
/* array is a constant, not a variable; the & is redundant. */
ip = &array;
set(10L, 6);
/* by here a prototype for set should have seen */
/* woops -- this element doesn’t exist */
/* this is okay */
(Parser)
(Parser)
(Parser)
(Parser)
323

Related parts for SW500009