C++ Standard Library
  1. C++ Standard Library
  2. STDCXX-54

[gcc/IRIX] warning: passing of negative value to unsigned int

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: Build and Installation
    • Labels:
      None
    • Environment:

      gcc/IRIX

      Description

      Gcc (in this case 2.95.2) on IRIX gives loads of warnings like the one below:

      gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_REENTRANT -D_RWSTD_USE_CONFIG -I/build/sebor/gcc-2.95.2-15d/include -I/build/sebor/dev/stdlib/include -pedantic -nostdinc++ -fhonor-std -ftemplate-depth-32 -fsquangle -g -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align -fPIC /build/sebor/dev/stdlib/src/bitset.cpp
      In file included from /build/sebor/dev/stdlib/include/rw/_strref.h:41,
      from /build/sebor/dev/stdlib/include/string:48,
      from /build/sebor/dev/stdlib/include/bitset:39,
      from /build/sebor/dev/stdlib/src/bitset.cpp:36:
      /build/sebor/dev/stdlib/include/rw/mutex.h: In function `unsigned int __rw::_rw_atomic_predecrement(unsigned int &, bool)':
      /build/sebor/dev/stdlib/include/rw/_mutex.h:1021: warning: argument passing of negative value `-1' to `unsigned int'

        Activity

        Hide
        Martin Sebor added a comment -

        Fix confirmed.

        Show
        Martin Sebor added a comment - Fix confirmed.
        Hide
        Martin Sebor added a comment -

        The change cleaned up the warnings.

        Show
        Martin Sebor added a comment - The change cleaned up the warnings.

          People

          • Assignee:
            Martin Sebor
            Reporter:
            Martin Sebor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development