Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-941

[HP aCC 3] many warnings 887: Type T is smaller than type U, unwanted widening in value may result.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2
    • 22. Localization
    • None
    • aCC: HP ANSI C++ B3910B A.03.73

    • Regression
    • Compiler Warning

    Description

      The following (complete useless) warning is pervasive in stdcxx 4.2.1 builds with aCC 3:

      aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include  -AA  +O2  +DD64 +w +W392,655,684,818,819,849  +Z  $(TOPDIR)/src/ctype.cpp
      Warning (suggestion) 887: "$(TOPDIR)/include/loc/_ctype.h", line 544 # Type 'unsigned int' is smaller than type 'unsigned long', unwanted widening in value may result.
              const _RWSTD_SIZE_T __inx = _RWSTD_STATIC_CAST (_RWSTD_UWCHAR_INT_T, __c);
                                          ^^^^^^^^^^^^^^^^^^                            
      

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h