home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.lib.bug
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!kikka.hut.fi!apm
- From: apm@kikka.hut.fi (Antti Miettinen)
- Subject: Libg++-2.3, gcc-2.3.3, IRIX 4.0.1, filebuf.C: filebuf: :do_write()
- Message-ID: <9301030222.AA21201@kikka.hut.fi>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Sun, 3 Jan 1993 06:22:56 GMT
- Approved: bug-lib-g++@prep.ai.mit.edu
- Lines: 28
-
- While compiling libg++-2.3 with gcc-2.3.3 (both configured with
- mips-sgi-irix4) on Indigo with IRIX 4.0.1 I got the following warning:
-
- >gcc -g -O -nostdinc++ -I. -I.. -I. -I./../src -I./../g++-include -c filebuf.C
- >filebuf.C: In method `int filebuf::do_write (const char *, int)':
- >filebuf.C:284: warning: negative value assigned to unsigned quantity
-
- The piece of code that the warning refers to is the following:
-
- >int filebuf::do_write(const char *data, int to_do)
- >{
- > if (to_do == 0)
- > return 0;
- > if (xflags() & _S_IS_APPENDING) {
- > // On a system without a proper O_APPEND implementation,
- > // you would need to sys_seek(0, ios::end) here, but is
- > // is not needed nor desirable for Unix- or Posix-like systems.
- > // Instead, just indicate that offset (before and after) is
- > // unpredictable.
- > _fb._offset = -1;
- > }
-
- _fb._offset is defined to be of type fpos_t in `strambuf.h' which is
- unsigned in IRIX. This might not be anything serious but I thought it
- was worth reporting.
-
-
-
-