Skip to content

Commit

Permalink
Fix review findings
Browse files Browse the repository at this point in the history
  • Loading branch information
zzam committed Mar 1, 2024
1 parent 02eabf8 commit 4a4bb6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sound/sound_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static bool External_Volume(int volume, int oldVolume) {
return false;
}
#else
static bool External_Play(const std::string &file) {
static bool External_Play(const std::string & /*file*/) {
return false;
}
static bool External_IsPlaying() {
Expand All @@ -240,7 +240,7 @@ static bool External_IsPlaying() {
static bool External_Stop() {
return false;
}
static bool External_Volume(int volume, int oldVolume) {
static bool External_Volume(int /*volume*/, int /*oldVolume*/) {
return false;
}
#endif
Expand Down
4 changes: 4 additions & 0 deletions src/ui/script_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,10 @@ static int CclCopyButtonsForUnitType(lua_State *l)
const std::string_view fromName = LuaToString(l, 1);
const std::string_view toName = LuaToString(l, 2);

// Check types exist
UnitTypeByIdent(fromName);
UnitTypeByIdent(toName);

for (auto &btn : UnitButtonTable) {
if (btn->UnitMask.find(fromName) != std::string::npos) {
btn->UnitMask += toName;
Expand Down
1 change: 0 additions & 1 deletion src/video/shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ static GLint FrameCount;
static GLint OutputSize;
static GLint TextureSize;
static GLint InputSize;
// static GLint VertexCoord;
static GLint TexCoord;
// caches that don't change for a window size
static int RecacheCount = 0; // rechache multiple times - races!
Expand Down

0 comments on commit 4a4bb6f

Please sign in to comment.