diff --git a/include/vlc_modules_macros.h b/include/vlc_modules_macros.h
index b2d05841b9d557e0c66a1a568d3b66fb308a2b21..57efb7515420522048d40560ffd5ff307d818886 100644
--- a/include/vlc_modules_macros.h
+++ b/include/vlc_modules_macros.h
@@ -119,6 +119,7 @@ E_(vlc_entry) ( module_t *p_module );
 
 #define vlc_module_end( )                                                     \
         }                                                                     \
+        (void)p_config;                                                       \
         return VLC_SUCCESS;                                                   \
                                                                               \
     error:                                                                    \