Issue Details (XML | Word | Printable)

Key: STDCXX-348
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[HP aCC 3.73] +DD64 warnings in time_put.cpp

Created: 08/Mar/07 12:00 AM   Updated: 02/Dec/08 03:05 AM
Return to search
Component/s: Build and Installation
Affects Version/s: 4.1.3, 4.1.4, 4.2.0, 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 2h
Remaining Estimate - 2h
Time Spent: Not Specified
Remaining Estimate - 2h

Environment: HP aCC 3.73 +DD64, HP-UX/PA-RISC

Severity: Compiler Warning


 Description  « Hide
Compiling the time_put.cpp library source file with HP aCC 3.73 produces the following warnings:

aCC -c -I/amd/devco/sebor/stdcxx/include/ansi -I/usr/include -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-aCC-3.73-12D/include -Aa +nostl +O2 +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 +Z /amd/devco/sebor/stdcxx/src/time_put.cpp
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2122 # Type 'unsigned int' is smaller than type
'unsigned long', unwanted widening in value may result.
tpd.str = ptime->abday (tmb->tm_wday % 7U, wide);
^^^^^^^^^^^^^^^^^
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2127 # Type 'unsigned int' is smaller than type
'unsigned long', unwanted widening in value may result.
tpd.str = ptime->day (tmb->tm_wday % 7U, wide);
^^^^^^^^^^^^^^^^^
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2132 # Type 'unsigned int' is smaller than type
'unsigned long', unwanted widening in value may result.
tpd.str = ptime->abmon (tmb->tm_mon % 12U, wide);
^^^^^^^^^^^^^^^^^
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2137 # Type 'unsigned int' is smaller than type
'unsigned long', unwanted widening in value may result.
tpd.str = ptime->mon (tmb->tm_mon % 12U, wide);
^^^^^^^^^^^^^^^^^
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2251 # Type 'unsigned int' is smaller than type
'unsigned long', unwanted widening in value may result.
tpd.fmt = ptime->abmon (tmb->tm_mon % 12U, wide);
^^^^^^^^^^^^^^^^^
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2349 # Type 'unsigned int' is smaller than type
'unsigned long', unwanted widening in value may result.
tpd.fmt = ptime->am_pm ((tmb->tm_hour / 12) % 2U, wide);
^^^^^^^^^^^^^^^^^^^^^^^
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2679 # Type 'const unsigned int' is smaller than
type 'unsigned long', unwanted widening in value may result.
_RWSTD_STATIC_CAST (const char*, ptime->alt_digits (altval, 0));
^^^^^^^^^^^^^^^^^^
Warning (suggestion) 887: "/amd/devco/sebor/stdcxx/src/time_put.cpp", line 2801 # Type 'int' is smaller than type 'unsigned
long', unwanted widening in value may result.
res = swprintf (wbuf,
^^^^^^^^^^^^^^^^



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 14/May/08 07:03 PM
Still a problem in 4.2.1. Let's fix this in 4.2.2.