home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / lib / bug / 733 < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.4 KB  |  41 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!kikka.hut.fi!apm
  3. From: apm@kikka.hut.fi (Antti Miettinen)
  4. Subject: Libg++-2.3, gcc-2.3.3, IRIX 4.0.1, filebuf.C: filebuf: :do_write()
  5. Message-ID: <9301030222.AA21201@kikka.hut.fi>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sun, 3 Jan 1993 06:22:56 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 28
  12.  
  13. While compiling libg++-2.3 with gcc-2.3.3 (both configured with
  14. mips-sgi-irix4) on Indigo with IRIX 4.0.1 I got the following warning:
  15.  
  16. >gcc -g -O -nostdinc++ -I. -I.. -I. -I./../src -I./../g++-include -c  filebuf.C
  17. >filebuf.C: In method `int  filebuf::do_write (const char *, int)':
  18. >filebuf.C:284: warning: negative value assigned to unsigned quantity
  19.  
  20. The piece of code that the warning refers to is the following:
  21.  
  22. >int filebuf::do_write(const char *data, int to_do)
  23. >{
  24. >    if (to_do == 0)
  25. >    return 0;
  26. >    if (xflags() & _S_IS_APPENDING) {
  27. >    // On a system without a proper O_APPEND implementation,
  28. >    // you would need to sys_seek(0, ios::end) here, but is
  29. >    // is not needed nor desirable for Unix- or Posix-like systems.
  30. >    // Instead, just indicate that offset (before and after) is
  31. >    // unpredictable.
  32. >    _fb._offset = -1;
  33. >    }
  34.  
  35. _fb._offset is defined to be of type fpos_t in `strambuf.h' which is
  36. unsigned in IRIX. This might not be anything serious but I thought it
  37. was worth reporting.
  38.  
  39.  
  40.  
  41.