EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: osiWireFormat.h problems
From: "Jeff Hill" <[email protected]>
To: "'Ralph Lange'" <[email protected]>
Cc: "'EPICS Core Talk'" <[email protected]>
Date: Tue, 5 Dec 2006 16:22:53 -0700

> -----Original Message-----
> From: Ralph Lange [mailto:[email protected]]
> 
> The compiler is
> aCC: HP ANSI C++ B3910B A.03.52

The good news is that HP appears to be maintaining this product and
releasing new versions that support the standard better. Your compiler is
from December 2003. Here is a link with the release history.

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1
743,00.html

> 
> Here we go .... I really hope you see more than I do ....
> 
> Thanks, Ralph
> 
> 
> 
> aCC -c           -DHP_UX   -AA -Aa -mt  +O3  +w      +DAportable +z
> -I. -I.. -I../../../include/os/hpux -I../../../include
> ../tcpiiu.cpp 2>&1 | ../../../configure/tools/filterWarnings.pl
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 116 #
> Type
>     'int' is larger than type 'unsigned short', truncation in value may
> result.
>         return ( src << 8u ) | ( src >> 8u );
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 124 #
> Type
>     'int' is larger than type 'unsigned short', truncation in value may
> result.
>         tmp0 = ( tmp0 << 8u ) | ( tmp0 >> 8u );
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 125 #
> Type
>     'int' is larger than type 'unsigned short', truncation in value may
> result.
>         tmp1 = ( tmp1 << 8u ) | ( tmp1 >> 8u );
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Warning (suggestion) 819: "../../../include/osiWireFormat.h", line 122 #
>     Initialization of type 'unsigned short' with 'unsigned int' may
> result in
>     truncation of value.
>         epicsUInt16 tmp0 = src >> 16u;
>                            ^^^^^^^^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 122 #
> Type
>     'unsigned int' is larger than type 'unsigned short', truncation in
> value may
>     result.
>         epicsUInt16 tmp0 = src >> 16u;
>                            ^^^^^^^^^^
> Warning (suggestion) 819: "../../../include/osiWireFormat.h", line 123 #
>     Initialization of type 'unsigned short' with 'const unsigned int &'
> may
>     result in truncation of value.
>         epicsUInt16 tmp1 = src;
>                            ^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 123 #
> Type
>     'const unsigned int' is larger than type 'unsigned short', truncation
> in
>     value may result.
>         epicsUInt16 tmp1 = src;
>                            ^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 170 #
> Type
>     'int' is larger than type 'unsigned short', truncation in value may
> result.
>             ( static_cast < epicsUInt16 > ( pWireSrc[0] ) << 8u ) |
>                                             ^^^^^^^^^^^^^^^^^^^^^^^
> Error (future) 229: "../comQueSend.h", line 123 # "Ambiguous overloaded
> function
>     call; a function match was not found that was strictly best for ALL
>     arguments. Two functions that matched best for some arguments (but
> not all)
>     were "unsigned int comBuf::push(const char *,unsigned int)"
> ["../comBuf.h",
>     line 196] and "unsigned int comBuf::push(const char *,unsigned int)"
>     ["../comBuf.h", line 196]." Choosing "unsigned int
> comBuf::push(const char
>     *,unsigned int)" ["../comBuf.h", line 196] for resolving ambiguity.
>                 nCopied = pLastBuf->push ( pVal, nElem );
>                                     ^^^^
> Error (future) 229: "../comQueSend.h", line 130 # "Ambiguous overloaded
> function
>     call; a function match was not found that was strictly best for ALL
>     arguments. Two functions that matched best for some arguments (but
> not all)
>     were "unsigned int comBuf::push(const char *,unsigned int)"
> ["../comBuf.h",
>     line 196] and "unsigned int comBuf::push(const char *,unsigned int)"
>     ["../comBuf.h", line 196]." Choosing "unsigned int
> comBuf::push(const char
>     *,unsigned int)" ["../comBuf.h", line 196] for resolving ambiguity.
>                 nCopied += pComBuf->push
>                                     ^^^^
> Warning (suggestion) 818: "../tcpiiu.cpp", line 1381 # Type 'int' is
> larger than
>     type 'unsigned short', truncation in value may result.
>             command, 0u,
>             ^^^^^^^
> Warning:        2 future errors were detected and ignored. Add a '+p'
> option to
>     detect and fix them before they become fatal errors in a future
> release.
>     Behavior of this ill-formed program is not guaranteed to match that of
> a
>     well-formed program
> Signal 11



References:
Re: osiWireFormat.h problems Ralph Lange

Navigate by Date:
Prev: Re: vxWorks 6.3 and EPICS R3.14.9-pre1 Ernest L. Williams Jr.
Next: RE: osiWireFormat.h problems Jeff Hill
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: osiWireFormat.h problems Ralph Lange
Next: RE: osiWireFormat.h problems Jeff Hill
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·