SW500011 Microchip Technology, SW500011 Datasheet - Page 103

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
C Language Features
Preprocessing
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: 35: (348) auto variable "c" should not be qualified (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 */
}d
int rv(int a)
{
near int c;
/* etc */
}
Here the state of the messaging system is saved by the warning push pragma. Warning
348 is disabled, then after the source code which triggers the warning, the state of the
messaging system is retrieved by the use of the warning pop pragma.
103

Related parts for SW500011