diff --git a/src/p_saveg.c b/src/p_saveg.c
index 2e4ba9228..09df38eb0 100644
--- a/src/p_saveg.c
+++ b/src/p_saveg.c
@@ -3408,7 +3408,7 @@ static void P_NetUnArchiveThinkers(void)
{
for (;;)
{
- thinker_t* th;
+ thinker_t* th = NULL;
tclass = READUINT8(save_p);
if (tclass == tc_end)
diff --git a/src/p_user.c b/src/p_user.c
index 6761d567d..b758cebe4 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -2049,7 +2049,7 @@ boolean P_PlayerHitFloor(player_t *player)
fixed_t mu = FixedMul(player->maxdash, player->mo->scale);
fixed_t mu2 = FixedHypot(player->mo->momx, player->mo->momy);
fixed_t ev;
- mobj_t *missile;
+ mobj_t *missile = NULL;
if (mu2 < mu)
mu2 = mu;
ev = (50*FRACUNIT - (mu/25))/50;
diff --git a/src/r_things.c b/src/r_things.c
index 4b1586455..c791571ac 100644
--- a/src/r_things.c
+++ b/src/r_things.c
@@ -2446,9 +2446,11 @@ static void R_DrawMaskedList (drawnode_t* head)
void R_DrawMasked(maskcount_t* masks, UINT8 nummasks)
{
- drawnode_t heads[nummasks]; /**< Drawnode lists; as many as number of views/portals. */
+ drawnode_t *heads; /**< Drawnode lists; as many as number of views/portals. */
SINT8 i;
+ heads = calloc(nummasks, sizeof(drawnode_t));
+
for (i = 0; i < nummasks; i++)
{
heads[i].next = heads[i].prev = &heads[i];
@@ -2474,6 +2476,8 @@ void R_DrawMasked(maskcount_t* masks, UINT8 nummasks)
R_DrawMaskedList(&heads[nummasks - 1]);
R_ClearDrawNodes(&heads[nummasks - 1]);
}
+
+ free(heads);
}
// ==========================================================================
diff --git a/src/s_sound.c b/src/s_sound.c
index 2db8392d7..66b5d4f72 100644
--- a/src/s_sound.c
+++ b/src/s_sound.c
@@ -1988,8 +1988,10 @@ void GameMIDIMusic_OnChange(void)
}
}
+#ifdef HAVE_OPENMPT
void ModFilter_OnChange(void)
{
if (openmpt_mhandle)
openmpt_module_set_render_param(openmpt_mhandle, OPENMPT_MODULE_RENDER_INTERPOLATIONFILTER_LENGTH, cv_modfilter.value);
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
diff --git a/src/sdl/Srb2SDL-vc10.vcxproj b/src/sdl/Srb2SDL-vc10.vcxproj
index d05a0d324..72c38b3dc 100644
--- a/src/sdl/Srb2SDL-vc10.vcxproj
+++ b/src/sdl/Srb2SDL-vc10.vcxproj
@@ -277,6 +277,7 @@
+
@@ -430,6 +431,7 @@
+
diff --git a/src/sdl/Srb2SDL-vc10.vcxproj.filters b/src/sdl/Srb2SDL-vc10.vcxproj.filters
index ca6bd38d2..9e442000f 100644
--- a/src/sdl/Srb2SDL-vc10.vcxproj.filters
+++ b/src/sdl/Srb2SDL-vc10.vcxproj.filters
@@ -453,6 +453,9 @@
Hw_Hardware
+
+ R_Rend
+
@@ -894,6 +897,10 @@
Hw_Hardware
+
+
+ R_Rend
+
diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c
index 6d485179a..7bf67559c 100644
--- a/src/sdl/mixer_sound.c
+++ b/src/sdl/mixer_sound.c
@@ -117,7 +117,7 @@ static int result;
static void var_cleanup(void)
{
- loop_point = song_length = 0.0f;
+ song_length = loop_point = 0.0f;
music_bytes = fading_source = fading_target =\
fading_timer = fading_duration = 0;
diff --git a/src/win32/Srb2win-vc10.vcxproj b/src/win32/Srb2win-vc10.vcxproj
index acab2507a..c0fe8eda9 100644
--- a/src/win32/Srb2win-vc10.vcxproj
+++ b/src/win32/Srb2win-vc10.vcxproj
@@ -293,6 +293,7 @@
+
@@ -443,6 +444,7 @@
+
diff --git a/src/win32/Srb2win-vc10.vcxproj.filters b/src/win32/Srb2win-vc10.vcxproj.filters
index c21cedb8a..93806e395 100644
--- a/src/win32/Srb2win-vc10.vcxproj.filters
+++ b/src/win32/Srb2win-vc10.vcxproj.filters
@@ -456,6 +456,10 @@
Hw_Hardware
+
+
+ R_Rend
+
@@ -857,6 +861,10 @@
Hw_Hardware
+
+
+ R_Rend
+