SW500011 Microchip Technology, SW500011 Datasheet - Page 335

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
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.:
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;
/* by here a prototype for set should have seen */
set(10L, 6);
/* oops -- this element doesn’t exist */
/* this is okay */
(Parser)
(Parser)
(Parser)
335

Related parts for SW500011