SW500010 Microchip Technology, SW500010 Datasheet - Page 112

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
Preprocessing
112
T
D
qualifying an auto object being disabled, number 348.
void main(void)
{
#pragma warning disable 348
near int c;
#pragma warning enable 348
/ * etc * /
}
int rv(int a)
{
near int c;
/ * etc * /
}
which will issue only one warning associated with the second definition of the auto
variable c. Warning number 348 is disabled during parsing of the definition of the auto
variable, c, inside the function main.
altst.c:
(warning)
This same affect would be observed using the following code.
void main(void)
{
#pragma warning push
#pragma warning disable 348
near int c;
#pragma warning pop
/ * etc * /
}
int rv(int a)
{
near int c;
/ * etc * /
}
Here the state of the messaging system is saved by the warning push pragma. Warn-
ing 348 is disabled, then after the source code which triggers the warning, the state of
UT RIAL
ISABLING A WARNING
35:
(348) auto variable "c" should not be qualified
The following example shows the warning associated with
C Language Features

Related parts for SW500010