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]

iostream warning in 1.1.2



In any file with iostream.h included, there is now this warning:

/usr/local/include/g++/iostream.h:50: warning: invalid type `void *' for default argument to `ostream *'

This isn't fatal, but annoying.  Is there a #define or -W to get around this?
I did not see this behavior in egcs 1.1.1.

The line in question is:

  public:
    ostream() { }
    ostream(streambuf* sb, ostream* tied=NULL);

Where NULL is apparently (void*)0 intead of 0.  I did not define NULL, it is
the ssytem default.  I've had many problems elsewhere with NULL being
(void*).  Is there a way to force NULL to be 0 instead?  I dont want to
define it myself, the system should.

Thanks,
Dave


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