[
https://issues.apache.org/jira/browse/STDCXX-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Sebor resolved STDCXX-831.
---------------------------------
Resolution: Fixed
Fix committed in [r645701|http://svn.apache.org/viewvc?rev=645701&view=rev].
Will close after merging to 4.2.x.
> [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: Bug
> 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
> Priority: Minor
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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.