--- a/libupnpp/upnpplib.cxx
+++ b/libupnpp/upnpplib.cxx
@@ -146,6 +146,7 @@
 		break;
 	}
 #endif
+	return true;
 }
 
 void LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler,