diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 74bac2bb2f1c9b0cb07438d6fa440fd5324dd0bc..7aa75d3371e70026a491833245b3fbb0dc895687 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1549,8 +1549,6 @@ static void FreeSDP( sdp_t *p_sdp )
 static int RemoveAnnounce( services_discovery_t *p_sd,
                            sap_announce_t *p_announce )
 {
-    int i;
-
     if( p_announce->p_sdp )
     {
         FreeSDP( p_announce->p_sdp );