--- a/libupnpp/control/service.cxx
+++ b/libupnpp/control/service.cxx
@@ -258,6 +258,7 @@
     case UPNP_EVENT_AUTORENEWAL_FAILED:
     {
         const char *ff = (const char *)vevp;
+        (void)ff;
         LOGDEB1("Service:srvCB: subs event: " << ff << endl);
         break;
     }