You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2016/08/24 22:10:20 UTC
[jira] [Comment Edited] (TS-4780) CID 1361919: Control flow issues
(DEADCODE) /lib/ts/InkErrno.cc:
[ https://issues.apache.org/jira/browse/TS-4780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15435811#comment-15435811 ]
James Peach edited comment on TS-4780 at 8/24/16 10:10 PM:
-----------------------------------------------------------
Coverity is right, but gcc does the exact opposite:
{noformat}
lib/ts/InkErrno.cc: In function ‘const char* InkStrerror(int)’:
lib/ts/InkErrno.cc:104:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
{noformat}
was (Author: jamespeach):
Coverity is right, but gcc does the exact opposite:
{noformat}
/opt/home/upstream/trafficserver.git/lib/ts/InkErrno.cc: In function ‘const char* InkStrerror(int)’:
/opt/home/upstream/trafficserver.git/lib/ts/InkErrno.cc:104:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
{noformat}
> CID 1361919: Control flow issues (DEADCODE) /lib/ts/InkErrno.cc:
> -------------------------------------------------------------------
>
> Key: TS-4780
> URL: https://issues.apache.org/jira/browse/TS-4780
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Reporter: Leif Hedstrom
> Assignee: James Peach
> Fix For: 7.0.0
>
>
> {code}
> *** CID 1361919: Control flow issues (DEADCODE)
> /lib/ts/InkErrno.cc: 105 in InkStrerror(int)()
> 99 }
> 100
> 101 if (ink_errno > SOCK_ERRNO) {
> 102 return "ESOCK (unknown)";
> 103 }
> 104
> CID 1361919: Control flow issues (DEADCODE)
> Execution cannot reach this statement: "return "(unknown)";".
> 105 return "(unknown)";
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)