From 0a58dc150e9306e3c4517961c0696111babfc91b Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 3 Aug 2013 12:31:45 +0200 Subject: [PATCH] Get rid of some compiler warnings --- qcsrc/menu/xonotic/playlist.c | 3 +-- qcsrc/menu/xonotic/soundlist.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/qcsrc/menu/xonotic/playlist.c b/qcsrc/menu/xonotic/playlist.c index 3ae627eab..451116786 100644 --- a/qcsrc/menu/xonotic/playlist.c +++ b/qcsrc/menu/xonotic/playlist.c @@ -73,7 +73,6 @@ void XonoticPlayList_addToPlayList(entity me, string track) return; } float i; - string s; for(i = 0; i < me.nItems; ++i) { if(argv(i) == track) @@ -85,7 +84,7 @@ void XonoticPlayList_addToPlayList(entity me, string track) void XonoticPlayList_removeFromPlayList(entity me, string track) { float i; - string s; + string s = ""; me.nItems = tokenize_console(cvar_string("music_playlist_list0")); if(me.nItems == 0) return; diff --git a/qcsrc/menu/xonotic/soundlist.c b/qcsrc/menu/xonotic/soundlist.c index e488e9e35..bf4228f24 100644 --- a/qcsrc/menu/xonotic/soundlist.c +++ b/qcsrc/menu/xonotic/soundlist.c @@ -59,13 +59,12 @@ string XonoticSoundList_soundName(entity me, float i ) void XonoticSoundList_getSounds(entity me) { string s; - float i; if(me.filterString) //subdirectory in filterString allowed - s=strcat("sound/cdtracks/*", me.filterString, "*.ogg"); + s = strcat("sound/cdtracks/*", me.filterString, "*.ogg"); else - s="sound/cdtracks/*.ogg"; + s = "sound/cdtracks/*.ogg"; if(me.listSound >= 0) search_end(me.listSound); -- 2.39.2