← Back to team overview

mudlet-makers team mailing list archive

[Bug 1055977] Re: Switch statement has no use.

 

** Changed in: mudlet
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1055977

Title:
  Switch statement has no use.

Status in Mudlet the MUD client:
  Invalid

Bug description:
  TTrigger.cpp, around 330.

      if( rc < 0 )
      {
          switch(rc)
          {
               return false;
          }
      }

  Throws a warning.

      if( rc < 0 )
      {
               return false;
      }

  Does not.


  While you're there.... afew more lines down has 
      if( rc < 0 )
      {
          return false;
      }
  ...which will never be reached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1055977/+subscriptions


References