SW500010 Microchip Technology, SW500010 Datasheet - Page 383

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
Error and Warning Messages
(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.:
int mydiv(double a, int b)
{
}
int get_value(void)
{
}
while(1)
flag = FINISHED;
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? * /
/ * how do we get here? * /
(Parser)
(Parser)
(Parser)
(Parser)
383

Related parts for SW500010