History

Declare the g_strCodecVer variable as const

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.

Martin Storsjö committed 11 years ago

Commit 3422d3b1 parent 7d5e88f3 files · +4 −5Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+0−1
@@ -1228,7 +1228,6 @@ void WelsDestroySVCEncoder (ISVCEncoder* pEncoder) { · 1227 unmodified lines
1228}1228}
1229 1229
1230OpenH264Version WelsGetCodecVersion() {1230OpenH264Version WelsGetCodecVersion() {
1231 (void) g_strCodecVer; // Avoid warnings about unused static variables
1232 return g_stCodecVersion;1231 return g_stCodecVersion;
1233}1232}
1234 1233

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t