You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/09/14 01:59:22 UTC

[jira] [Updated] (TS-4864) CID 1362769: Control flow issues (DEADCODE) in ink_thread.h

     [ https://issues.apache.org/jira/browse/TS-4864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-4864:
------------------------------
    Assignee: Nathan Garabedian

> CID 1362769:  Control flow issues  (DEADCODE) in ink_thread.h
> -------------------------------------------------------------
>
>                 Key: TS-4864
>                 URL: https://issues.apache.org/jira/browse/TS-4864
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Leif Hedstrom
>            Assignee: Nathan Garabedian
>             Fix For: 7.0.0
>
>
> Filing this just in case, but maybe Nathan's fixes around this is where to go ?
> {code}
> *** CID 1362769:  Control flow issues  (DEADCODE)
> /lib/ts/ink_thread.h: 160 in ink_thread_create(void *(*)(void *), void *, int, unsigned long, void *)()
> 154       pthread_attr_destroy(&attr);
> 155     
> 156       /**
> 157        * Fix for INKqa10118.
> 158        * If the thread has not been created successfully return 0.
> 159        */
>    CID 1362769:  Control flow issues  (DEADCODE)
>    Execution cannot reach the expression "0UL" inside this statement: "return ret ? 0UL : t;".
> 160       return ret ? (ink_thread)0 : t;
> 161     }
> 162     
> 163     static inline void
> 164     ink_thread_cancel(ink_thread who)
> 165     {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)