public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* objc/7014: Wrong compiler's warning
@ 2002-06-13  3:46 daa
  0 siblings, 0 replies; 2+ messages in thread
From: daa @ 2002-06-13  3:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7014
>Category:       objc
>Synopsis:       Wrong compiler's warning
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 13 03:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Aleksey Dukhnyakov
>Release:        gcc 3.1
>Organization:
>Environment:

>Description:
Extra warning 

[daa@coke Tests]$ cat bug.m
#include <objc/objc.h>

@protocol MyProtocol
- (void) foo;
@end

int main()
{
    id<MyProtocol> obj;

#if !defined(WORKAROUND)
    if ( nil != obj )
#else
    if ( obj != nil )
#endif
        return 1;

    return 0;
}
[daa@coke Tests]$ ~/bin/gcc -v
Reading specs from /home/daa/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ./configure  : (reconfigured) ./configure
Thread model: single
gcc version 3.1
[daa@coke Tests]$ ~/bin/gcc bug.m
bug.m: In function `main':
bug.m:12: warning: comparison of distinct pointer types lacks a cast
[daa@coke Tests]$ ~/bin/gcc bug.m -DWORKAROUND
[daa@coke Tests]$
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: objc/7014: Wrong compiler's warning
@ 2002-09-17  7:26 nicola
  0 siblings, 0 replies; 2+ messages in thread
From: nicola @ 2002-09-17  7:26 UTC (permalink / raw)
  To: daa, gcc-bugs, gcc-prs, nicola, nobody

Synopsis: Wrong compiler's warning

Responsible-Changed-From-To: unassigned->nicola
Responsible-Changed-By: nicola
Responsible-Changed-When: Tue Sep 17 07:26:48 2002
Responsible-Changed-Why:
    I fixed it
State-Changed-From-To: open->closed
State-Changed-By: nicola
State-Changed-When: Tue Sep 17 07:26:48 2002
State-Changed-Why:
    Thanks - I fixed this bug on CVS - GCC 3.3 from CVS no
    longer emits the warning.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7014


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

end of thread, other threads:[~2002-09-17 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-13  3:46 objc/7014: Wrong compiler's warning daa
2002-09-17  7:26 nicola

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).