public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15726] New: no way to locally suppress a warning in part of a compunit
@ 2004-05-30 20:33 igodard at pacbell dot net
  2004-05-30 21:05 ` [Bug c++/15726] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: igodard at pacbell dot net @ 2004-05-30 20:33 UTC (permalink / raw)
  To: gcc-bugs

At least, none is mentioned in the manual. If one exists, it's a documentation bug. If not then it's a missing feature. 

Many users have internal policy standards that require that all compilation use -Wall (and/or -Wextra) and that all warnings must be expunged from source code. Nevertheless, there are occasionally situations (such as compiler bugs, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15723) where a warning does not indicate a defect in the code and cannot be worked around or otherwise expunged. 

In those situations there should be a way to explicitly annotate the source to suppress the gratuitous warning in the narrowest possible region, leaving the warning enabled in the rest of the compilation. In other compilers this capability is typically provided by pragmas, to which gcc is notoriously allergic. However done, it should exist and the capability should be described in the manual.

Ivan

-- 
           Summary: no way to locally suppress a warning in part of a
                    compunit
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15726


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/15726] no way to locally suppress a warning in part of a compunit
  2004-05-30 20:33 [Bug c++/15726] New: no way to locally suppress a warning in part of a compunit igodard at pacbell dot net
@ 2004-05-30 21:05 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-30 21:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-29 20:05 -------
This is a dup of bug 9049.

*** This bug has been marked as a duplicate of 9049 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15726


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-29 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-30 20:33 [Bug c++/15726] New: no way to locally suppress a warning in part of a compunit igodard at pacbell dot net
2004-05-30 21:05 ` [Bug c++/15726] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).