[ 
https://issues.apache.org/jira/browse/STDCXX-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Sebor updated STDCXX-348:
--------------------------------

              Severity: Compiler Warning
     Affects Version/s: 4.2.0
                        4.2.1
         Fix Version/s: 4.2.2
    Remaining Estimate: 2h
     Original Estimate: 2h

Still a problem in 4.2.1. Let's fix this in 4.2.2.

> [HP aCC 3.73] +DD64 warnings in time_put.cpp
> --------------------------------------------
>
>                 Key: STDCXX-348
>                 URL: https://issues.apache.org/jira/browse/STDCXX-348
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 4.1.3, 4.1.4, 4.2.0, 4.2.1
>         Environment: HP aCC 3.73 +DD64, HP-UX/PA-RISC
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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, 
>                   ^^^^^^^^^^^^^^^^

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to