diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index 4110426377709562daeee2466d4f611fa9b47c64..2781ab170a391858e53a207e46a96c9351adb164 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -70,7 +70,6 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
     SEncParamExt param = { 0 };
     int err = AVERROR_UNKNOWN;
     av_unused OpenH264Version libver;
-    (void)g_strCodecVer; // Avoid warnings due to unused static members from codec_ver.h
 
     // Mingw GCC < 4.7 on x86_32 uses an incorrect/buggy ABI for the WelsGetCodecVersion
     // function (for functions returning larger structs), thus skip the check in those