From 59db1a882fe09983f534d20ba3343c3e9663938f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 16 Feb 2017 11:01:06 +0200 Subject: [PATCH] Fixed compilation warnings reported by MSVC src\s_sound.cpp(1259): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data src\c_bind.cpp(479): warning C4101: 'c': unreferenced local variable --- src/c_bind.cpp | 2 +- src/s_sound.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c_bind.cpp b/src/c_bind.cpp index e6c76ab06..c21e200d3 100644 --- a/src/c_bind.cpp +++ b/src/c_bind.cpp @@ -476,7 +476,7 @@ DEFINE_ACTION_FUNCTION(FKeyBindings, GetKeysForCommand) { PARAM_SELF_STRUCT_PROLOGUE(FKeyBindings); PARAM_STRING(cmd); - int k1, k2, c; + int k1, k2; self->GetKeysForCommand(cmd.GetChars(), &k1, &k2); if (numret > 0) ret[0].SetInt(k1); if (numret > 1) ret[1].SetInt(k2); diff --git a/src/s_sound.cpp b/src/s_sound.cpp index 5c0ae69e2..840559127 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -1256,7 +1256,7 @@ DEFINE_ACTION_FUNCTION(DObject, S_Sound) PARAM_INT(channel); PARAM_FLOAT_DEF(volume); PARAM_FLOAT_DEF(attn); - S_Sound(channel, id, volume, attn); + S_Sound(channel, id, static_cast(volume), static_cast(attn)); return 0; }