PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Disabling warnings in pgcc

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mmartin



Joined: 11 May 2006
Posts: 4

PostPosted: Wed May 24, 2006 8:33 am    Post subject: Disabling warnings in pgcc Reply with quote

Can I use a prgama to disable wanrnings that I know I want to ignore in C when compiling with pgcc like I can with MS Visual Studio and other compilers. For example:

#ifdef _MSC_VER
# pragma warning( disable : 4127 )/* disable warning that conditional expression*/
/* is constant, TRUE or FALSE in if */
# pragma warning( disable : 4056 )/* disable bogus underflow warning in MS VS*/
# pragma warning( disable : 4514 )/* disable "inline function removed since not used", MS VS*/
#endif
#ifdef __INTEL_COMPILER
# pragma warning( disable : 1572 )/* disable warning that floating-point comparisons are unreliable */
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6215
Location: The Portland Group Inc.

PostPosted: Wed May 24, 2006 1:45 pm    Post subject: Reply with quote

Hi mmartin,

Unfortunately we don't support this pragma, but I think it would be a useful feature. I've sent a feature request to our compiler team (TPR#3846) and hopefully they can add this to a future release.

Note that warnings can be disabled by adding the "-w" flag.

Thanks,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group