Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 User Manual

Product codes
SW006021-1
Page of 518
MPLAB
®
 XC8 C Compiler User’s Guide
DS52053B-page 472
 2012 Microchip Technology Inc.
(1376) initial value (*) too large for bitfield width (*)
(Code Generator)
A structure with bit-fields has been defined an initialized with values. The value indi-
cated it too large to fit in the corresponding bit-field width.
struct {
  unsigned flag :1;
  unsigned mode :3;
} foobar = { 1, 100 };   // oops, 100 is too large for a 3 bit object
(1377) no suitable strategy for this switch
(Code Generator)
The compiler was unable to determine the switch strategy to use to encode a C switch 
statement based on the code and your selection using the #pragma switch directive. 
You may need to choose a different strategy.
(1378) syntax error in pragma "*"
(Parser)
The arguments to the indicated pragma are not valid.
#pragma addrqual ingore  // oops -- did you mean ignore?
(1379)  no suitable strategy for this switch
(Code Generator)
The compiler encodes switch() statements according to one of a number of strate-
gies. The specific number and values of the case values, and the switch expression, 
as well as the switch pragma determine the strategy chosen. This error indicates that 
no strategy was available to encode the switch() statement. Contact Microchip sup-
port with program details.
(1380) unable to use switch strategy "*"
(Code Generator)
The compiler encodes switch() statements according to one of a number of strate-
gies. The specific number and values of the case values, and the switch expression, 
as well as the switch pragma determine the strategy chosen. This error indicates that 
the strategy which as requested cannot be used to encode the switch() statement. 
Contact Microchip support with program details.
(1381) invalid case label range
(Parser)
The values supplied for the case range are not correct. They must form an ascending 
range and integer constants.
case 0 ... -2:  // oops -- do you mean -2 ... 0  ?
(1385) * "*" is deprecated (declared at *:*)
(Parser)
Code is using a variable or function that was marked as being deprecated using an 
attribute.
char __attribute__((deprecated)) foobar;
foobar = 9;     // oops -- this variable is near end-of-life
(1386) unable to determine the semantics of the configuration setting "*" for register "*"
(Parser, Code Generator)
The numerical value supplied to a configuration bit setting has no direct association 
setting specified in the data sheet. The compiler will attempt to honor your request, but 
check your device data sheet.
#pragma config OSC=11
// oops -- there is no direct association for that value on an 18F2520
// either use OSC=3 or OSC=RC