<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pragma directive for warnings in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620882#M104718</link>
    <description>Generally the way to do that is to modify the CCFLAGS in your makefile(s) to either&lt;BR /&gt;-w (suppress all warnings) or (generally better) +W 600,321,697... to suppress specific warnings.</description>
    <pubDate>Wed, 07 Sep 2005 12:25:55 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-09-07T12:25:55Z</dc:date>
    <item>
      <title>pragma directive for warnings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620881#M104717</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We are using HP ANSI C++ B3910B A.03.60&lt;BR /&gt;and are currently in the process&lt;BR /&gt;of porting our application to the 64-bit&lt;BR /&gt;world.&lt;BR /&gt;&lt;BR /&gt;We use some third party include files which generate warnings that we know can be &lt;BR /&gt;safely ignored.&lt;BR /&gt;&lt;BR /&gt;However, we do not want to disable the warnings&lt;BR /&gt;in our own code.&lt;BR /&gt;&lt;BR /&gt;Is there a pragma directive that disables warnings on the aCC compiler?&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;#pragma warning disable all&lt;BR /&gt;#include "thirdparty.h"&lt;BR /&gt;#pragma warning enable all&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;&lt;BR /&gt;Michael.</description>
      <pubDate>Wed, 07 Sep 2005 11:23:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620881#M104717</guid>
      <dc:creator>Michael O'Sullivan_1</dc:creator>
      <dc:date>2005-09-07T11:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: pragma directive for warnings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620882#M104718</link>
      <description>Generally the way to do that is to modify the CCFLAGS in your makefile(s) to either&lt;BR /&gt;-w (suppress all warnings) or (generally better) +W 600,321,697... to suppress specific warnings.</description>
      <pubDate>Wed, 07 Sep 2005 12:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620882#M104718</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-07T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: pragma directive for warnings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620883#M104719</link>
      <description>Sure, but I want to be able to disable&lt;BR /&gt;warnings at a finer granularity. &lt;BR /&gt;&lt;BR /&gt;e.g. Other compilers offer pragmas that allow you to disable warnings at one point&lt;BR /&gt;in a compilation unit and then renable&lt;BR /&gt;them at another point.&lt;BR /&gt;&lt;BR /&gt;If we could do this, then we dont have&lt;BR /&gt;to worry about third-party header files&lt;BR /&gt;that are churning out warnings (that we know are safe to ignore), but we dont disable&lt;BR /&gt;the warning for our own code, as we feel&lt;BR /&gt;they might be important.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Michael.</description>
      <pubDate>Thu, 08 Sep 2005 05:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620883#M104719</guid>
      <dc:creator>Michael O'Sullivan_1</dc:creator>
      <dc:date>2005-09-08T05:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: pragma directive for warnings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620884#M104720</link>
      <description>I checked the aC++ pragma directives list at docs.hp.com:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/1559/pragmas.htm" target="_blank"&gt;http://docs.hp.com/en/1559/pragmas.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and there doesn't seem to be anything in there that will do what you want.&lt;BR /&gt;&lt;BR /&gt;I checked the submitted defects/enhancements lists for the aC++ product and didn't see that anyone had submitted a request for a new pragma of this type.&lt;BR /&gt; &lt;BR /&gt;If you strongly want this, I would suggest opening a call at the Response Center and requesting this pragma.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2005 12:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620884#M104720</guid>
      <dc:creator>susan gregory_1</dc:creator>
      <dc:date>2005-09-08T12:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: pragma directive for warnings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620885#M104721</link>
      <description>While the warnings may be safe to ignore, it might still be a good idea to report them to the third party in hopes that they can get them cleaned-up.  Even if some pragma is found to exist.</description>
      <pubDate>Thu, 08 Sep 2005 13:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-directive-for-warnings/m-p/3620885#M104721</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-09-08T13:04:10Z</dc:date>
    </item>
  </channel>
</rss>

