Does anyone else see several dozen

warning: #pragma system_header ignored outside include file

warnings when building Errno with gcc?

I see it on Win32 (MinGW -- gcc 3.2.3).  It never used to happen, but 
does as of change 23806 which filled in $Config{gccversion} and thus 
causes Errno_pm.PL to scan the output of "gcc -E -dM" on each header 
file, rather than scanning each header file directly.

Under MinGW running

gcc -E -dM -DWIN32 C:/MinGW/include/windows.h

emits

C:/MinGW/include/windows.h:16:13: warning: #pragma system_header ignored 
outside include file

on stderr.  The windows.h header file (and many others) includes the lines

#if __GNUC__ >=3
#pragma GCC system_header
#endif

Is there any way to suppress these warnings?

If not then what is best to do?  I could revert to scanning the files 
directly rather than using "gcc -E -dM" (but that sounds like a step 
backwards) or I could send stderr to the null device (but that sounds 
potentially dangerous -- people may miss something genuinely relevant).

Any other ideas?


------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender 
immediately.  The unauthorized use, disclosure, copying or alteration of this 
message is strictly forbidden.  Note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of Radan Computational Ltd.  The recipient(s) of this message should 
check it and any attached files for viruses: Radan Computational will accept no 
liability for any damage caused by any virus transmitted by this email.

Reply via email to