SW500010 Microchip Technology, SW500010 Datasheet - Page 358

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
(204) void function can’t return a value
A void function cannot return a value. Any return statement should not be followed by an expres-
sion, e.g.:
(205) integral type required
This operator requires operands that are of integral type only.
(206) illegal use of void expression
A void expression has no value and therefore you can’t use it anywhere an expression with a value
is required, e.g. as an operand to an arithmetic operator.
(207) simple type required for "*"
A simple type (i.e. not an array or structure) is required as an operand to this operator.
(208) operands of "*" not same type
The operands of this operator are of different pointer, e.g.:
Maybe you meant something like:
(209) type conflict
The operands of this operator are of incompatible types.
358
void run(void)
{
}
int * ip;
char * cp, * cp2;
cp = flag ? ip : cp2;
/ * result of ? : will be int * or char * * /
cp = flag ? (char * )ip : cp2;
step();
return 1;
/ * either run should not be void, or remove the 1 * /
Error and Warning Messages
(Parser)
(Parser)
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500010