Browse Source

one or two fewer warnings

Cary Sandvig 25 years ago
parent
commit
08e05167f8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/gui/guiButton.I

+ 3 - 0
panda/src/gui/guiButton.I

@@ -89,6 +89,9 @@ INLINE void GuiButton::inactive(void) {
   case DOWN_ROLLOVER:
     switch_state(INACTIVE_ROLLOVER);
     break;
+  case INACTIVE:
+  case INACTIVE_ROLLOVER:
+    break;
   default:
     gui_cat->warning() << "got inactive from invalid state (" << (int)_state
 		       << "), button '" << this->get_name() << "'" << endl;