Silenced some MSVC warnings

svn-id: r38218
This commit is contained in:
Filippos Karapetis 2009-02-15 10:24:32 +00:00
parent 5e2def9ca5
commit 89cad681d7
5 changed files with 5 additions and 5 deletions

View File

@ -1516,7 +1516,7 @@ dijkstra(pf_state_t *s)
/* Loop until we find vertex_end */
while (1) {
int i;
vertex_t *vertex, *vertex_min;
vertex_t *vertex, *vertex_min = 0;
float min = HUGE_DISTANCE;
/* Find vertex at shortest distance from set done */

View File

@ -873,7 +873,7 @@ kDoSound_SCI1(state_t *s, int funct_nr, int argc, reg_t *argv)
int sec = 0;
int frame = 0;
int result = SI_LOOP; /* small hack */
int cue;
int cue = 0;
while (result == SI_LOOP)
result = sfx_poll_specific(&s->sound, handle, &cue);

View File

@ -1228,7 +1228,7 @@ c_hexgrep (state_t * s)
for (; resnr <= resmax; resnr++)
if ((script = scir_find_resource(s->resmgr, restype, resnr, 0)))
{
int seeker = 0, seekerold = 0;
unsigned int seeker = 0, seekerold = 0;
int comppos = 0;
int output_script_name = 0;

View File

@ -155,7 +155,7 @@ midi_hexdump(byte *data, int size, int notational_offset)
size);
int cmd;
int pleft;
int firstarg;
int firstarg = 0;
int i;
int blanks = 0;

View File

@ -92,7 +92,7 @@ static inline int
find_free_id(seg_manager_t *self, int *id)
{
char was_added = 0;
int retval;
int retval = 0;
while (!was_added) {
retval = int_hash_map_check_value(self->id_seg_map, self->reserved_id,