[
https://issues.apache.org/jira/browse/STDCXX-754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591485#action_12591485
]
Martin Sebor commented on STDCXX-754:
-------------------------------------
[r650698|http://svn.apache.org/viewvc?rev=650698&view=rev] gets rid of one
bogus warning only to replace it with another. The compiler now spits out the
diagnostics below. Warning #4276 is caused by the compiler bug in STDCXX-889
and the new warning #20200 by the one in STDCXX-764.
{noformat}
aCC -c -D_RWSTDDEBUG -mt -I/amd/devco/sebor/stdcxx-4.2.x/include
-I/build/sebor/stdcxx-4.2.x-aCC-6.16-15D//include
-I/amd/devco/sebor/stdcxx-4.2.x/tests/include -AA -g +d +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
/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp
"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 167: warning
#4276-D:
relational operator "<" always evaluates to 'false'
_RWSTD_INT_MIN < opt->minval_
^
"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 181: warning
#4276-D:
relational operator "<" always evaluates to 'false'
if (_RWSTD_INT_MIN < opt->minval_)
^
"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 756: warning
#4276-D:
relational operator "<" always evaluates to 'false'
&& ( _RWSTD_INT_MIN < optspec->minval_
^
"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 1133: remark
#4315-D:
while loop without body, did you insert an extra ';'?
while (isspace (*++s));
^
"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 513, procedure
rw_vsetopts: warning #20200-D:
Potential null pointer dereference through end is detected (null
definition:/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp, line
506)
{noformat}
> [HP aCC 6.16] Potential null pointer dereference in cmdopt.cpp
> --------------------------------------------------------------
>
> Key: STDCXX-754
> URL: https://issues.apache.org/jira/browse/STDCXX-754
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: Test Driver
> Affects Versions: 4.2.0
> Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Scott (Yu) Zhong
> Assignee: Martin Sebor
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> aCC -c -mt -I/amd/devco/scottz/stdcxx/4.2.x/include
> -I/build/scottz/12d/include -I/amd/devco/scottz/stdcxx/4.2.x/tests/include
> -AA +O2 +DD64
> +w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401
> +W2487 +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +
> W4285 +W4286 /amd/devco/scottz/stdcxx/4.2.x/tests/src/cmdopt.cpp
> "/amd/devco/scottz/stdcxx/4.2.x/tests/src/cmdopt.cpp", line 537, procedure
> rw_vsetopts: warning #20200-D: Potential null pointer dereference through
> next is detected (null
> definition:/amd/devco/scottz/stdcxx/4.2.x/tests/src/cmdopt.cpp, line 506)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.