Browse Source

Fix check of -Wswitch

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Nobuhiro Iwamatsu 10 years ago
parent
commit
a8f6f8b6c2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app.cpp

+ 4 - 0
app.cpp

@@ -59,6 +59,8 @@ int conv(int num_msg, const struct pam_message **msg,
 					case Panel::Login:
 						(*resp)[i].resp=strdup(panel->GetName().c_str());
 						break;
+					default:
+						break;
 				}
 				break;
 
@@ -405,6 +407,8 @@ void App::Run() {
 			case Panel::Exit:
 				Exit();
 				break;
+			default:
+				break;
 		}
 	}
 }