SW500011 Microchip Technology, SW500011 Datasheet - Page 330

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
(343) implicit return at end of non-void function
A function which has been declared to return a value has an execution path that will allow it to reach
the end of the function body, thus returning without a value. Either insert a return statement with a
value, or if the function is not to return a value, declare it void, e.g.:
(344) non-void function returns no value
A function that is declared as returning a value has a return statement that does not specify a return
value, e.g.:
(345) unreachable code
This section of code will never be executed, because there is no execution path by which it could be
reached, e.g.:
(346) declaration of "*" hides outer declaration
An object has been declared that has the same name as an outer declaration (i.e. one outside and
preceding the current function or block). This is legal, but can lead to accidental use of one variable
when the outer one was intended, e.g.:
330
int mydiv(double a, int b)
{
}
int get_value(void)
{
}
while(1)
flag = FINISHED; /* how do we get here? */
if(b != 0)
if(flag)
return;
/* what is the return value in this instance? */
process();
return a/b;
return val++;
/* what about when b is 0? */
/* warning flagged here */
/* how does this loop finish? */
Error and Warning Messages
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500011