public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/9049: No support for selective enabling/disabling of warnings
@ 2002-12-23 16:26 gonz
0 siblings, 0 replies; 2+ messages in thread
From: gonz @ 2002-12-23 16:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 9049
>Category: c
>Synopsis: No support for selective enabling/disabling of warnings
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Dec 23 16:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Pete Gonzalez
>Release: 3.2.1
>Organization:
>Environment:
Debian Linux
>Description:
GCC provides no facility for disabling/enabling a warning for a single function or block of code. Every other C/C++ compiler has this feature. Examples:
Visual C++: #pragma warning
Borland C++: #pragma warn
Watcom C++: #pragma warning
Here is some sample syntax in Visual C++:
int a;
#pragma warning( disable : 4705 ) // diable warning
void func() {
a;
}
#pragma warning( default : 4705 ) // restore original setting
GCC has no such feature, requiring warnings to be disabled globally for an entire file (or project).
>How-To-Repeat:
N/A
>Fix:
Implement the "warning" pragma. Or, provide GCC attributes for disabling/enabling warnings.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c/9049: No support for selective enabling/disabling of warnings
@ 2003-01-08 2:48 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-08 2:48 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gonz, nobody
Synopsis: No support for selective enabling/disabling of warnings
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Jan 7 18:48:49 2003
State-Changed-Why:
We all agree.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9049
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-08 2:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-23 16:26 c/9049: No support for selective enabling/disabling of warnings gonz
2003-01-08 2:48 bangerth
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).