Previously, the variable itself wasn't const (which meant that it could be set to point to another const string instead). By declaring it as const, gcc doesn't warn about it being unused, and we can get rid of a workaround.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1228,7 +1228,6 @@ void WelsDestroySVCEncoder (ISVCEncoder* pEncoder) { · 1227 unmodified lines | ||
| 1228 | 1228 | } |
| 1229 | 1229 | |
| 1230 | 1230 | OpenH264Version WelsGetCodecVersion() { |
| 1231 | − (void) g_strCodecVer; // Avoid warnings about unused static variables | |
| 1232 | 1231 | return g_stCodecVersion; |
| 1233 | 1232 | } |
| 1234 | 1233 | |