This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/25173] gcc outputs unnecessary warnings



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-30 01:36 -------
Because the code is really invalid C.
that is:
int *a;
unsigned int *f(void)
{
  return a;
}

Is invalid C.  We used to just output a warning with -pedantic but now the
warning is always on unless you add -Wno-pointer-sign.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]