Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
Error and Warning Messages
 2012 Microchip Technology Inc.
DS52053B-page 389
(204) void function can’t return a value 
(Parser)
A void function cannot return a value. Any return statement should not be followed 
by an expression, for example:
void run(void)
{
  step();
  return 1;
  /* either run should not be void, or remove the 1 */
}
(205) integral type required 
(Parser)
This operator requires operands that are of integral type only.
(206) illegal use of void expression 
(Parser)
A void expression has no value and therefore you can’t use it anywhere an expression 
with a value is required, i.e., as an operand to an arithmetic operator.
(207) simple type required for "*" 
(Parser)
A simple type (i.e., not an array or structure) is required as an operand to this operator.
(208) operands of "*" not same type 
(Parser)
The operands of this operator are of different pointer, for example:
int * ip;
char * cp, * cp2;
cp = flag ? ip : cp2;
/* result of ? : will be int * or char * */
Maybe you meant something like:
cp = flag ? (char *)ip : cp2;
(209) type conflict 
(Parser)
The operands of this operator are of incompatible types.
(210) bad size list 
(Parser)
This is an internal compiler error. Contact Microchip Technical Support with details.
(211) taking sizeof bit is illegal 
(Parser)
It is illegal to use the sizeof operator with the C bit type. When used against a type 
the sizeof operator gives the number of bytes required to store an object that type. 
Therefore its usage with the bit type make no sense and is an illegal operation.
(212) missing number after pragma "pack" 
(Parser)
The pragma pack requires a decimal number as argument. This specifies the align-
ment of each member within the structure. Use this with caution as some processors 
enforce alignment and will not operate correctly if word fetches are made on odd 
boundaries, for example:
#pragma pack  /* what is the alignment value */
Maybe you meant something like:
#pragma pack 2
(214) missing number after pragma "interrupt_level" 
(Parser)
The pragma interrupt_level requires an argument to indicate the interrupt level. 
It will be the value 1 for mid-range devices, or 1 or 2 or PIC18 devices.