Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4864

CID 1362769: Control flow issues (DEADCODE) in ink_thread.h

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.1.0
    • Core

    Description

      Filing this just in case, but maybe Nathan's fixes around this is where to go ?

      *** 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     {
      

      Attachments

        Issue Links

          Activity

            People

              ngara Nathan Garabedian
              zwoop Leif Hedstrom
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h