From: Todd K. <ki...@ya...> - 2002-01-06 08:24:02
|
I got a couple uninitalized variable warnings when I compile the quake2 source on my Linux 7.1 athlon box (gcc 2.96). Warnings are: game/g_combat.c: In function `CheckPowerArmor': game/g_combat.c:179: warning: `power' might be used uninitialized in this function make[1]: *** [releasei386/game/g_combat.o] Error 1 make[1]: Leaving directory `/home/tkirby/quake2' make: *** [build_release] Error 2 ctf/g_combat.c: In function `CheckPowerArmor': ctf/g_combat.c:179: warning: `power' might be used uninitialized in this function make[1]: *** [releasei386/ctf/g_combat.o] Error 1 make[1]: Leaving directory `/home/tkirby/quake2' make: *** [build_release] Error 2 The following patch applied to quake2/game/g_combat.c and quake2/ctf/g_combat.c fixed the problems: 179c179 < int power; --- > int power = 0; -Todd Kirby ===== __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ |