stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-831) [HP aCC 6.16] warnings compiling fmtflags_manip.cpp example
Date Mon, 07 Apr 2008 19:47:24 GMT
[HP aCC 6.16] warnings compiling fmtflags_manip.cpp example
-----------------------------------------------------------

                 Key: STDCXX-831
                 URL: https://issues.apache.org/jira/browse/STDCXX-831
             Project: C++ Standard Library
          Issue Type: Sub-task
          Components: Examples
    Affects Versions: 4.2.0
         Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
            Reporter: Martin Sebor
            Assignee: Martin Sebor
             Fix For: 4.2.1


When compiled with HP aCC 6.16 the example program [fmtflags_manip.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/examples/manual/fmtflags_manip.cpp]
produces the following warnings:

{noformat}
aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include  -AA
 +O2  +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/examples/manual/fmtflags_manip.cpp
"$(TOPDIR)/examples/manual/fmtflags_manip.cpp", line 53: warning #4257-D: enumeration value
is out of declared range, behavior is unspecified
          if (flags != std::ios_base::fmtflags (-1))
                       ^

"$(TOPDIR)/examples/manual/fmtflags_manip.cpp", line 53: warning #2514-D: pointless comparison
of unsigned integer with a negative constant
          if (flags != std::ios_base::fmtflags (-1))
                    ^

"$(TOPDIR)/examples/manual/fmtflags_manip.cpp", line 53: warning #4275-D: constant out of
range ([1 - 262144]) for the operator
          if (flags != std::ios_base::fmtflags (-1))
                    ^
{noformat}

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


Mime
View raw message