SW500009 Microchip Technology, SW500009 Datasheet - Page 332

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
(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.:
318
int mydiv(double a, int b)
{
}
int get_value(void)
{
}
while(1)
flag = FINISHED; /* how do we get here? */
int input;
void process(int a)
if(b != 0)
if(flag)
return;
process();
return a/b;
return val++;
/* what about when b is 0? */
/* warning flagged here */
/* what is the return value in this instance? */
/* how does this loop finish? */
/* input has filescope */
Error and Warning Messages
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500009