From f5de5144d32a536f72ed2f15bf004af9f45f6b15 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 7 Feb 2011 23:04:10 +0000 Subject: [PATCH] Initialize variables to avoid gcc warnings. git-svn-id: svn://svn.cc65.org/cc65/trunk@4970 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/dbginfo/dbginfo.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/dbginfo/dbginfo.c b/src/dbginfo/dbginfo.c index 384f9f31a..b0fc0b47a 100644 --- a/src/dbginfo/dbginfo.c +++ b/src/dbginfo/dbginfo.c @@ -1673,9 +1673,9 @@ static void ConsumeEOL (InputData* D) static void ParseFile (InputData* D) /* Parse a FILE line */ { - unsigned Id; - unsigned long Size; - unsigned long MTime; + unsigned Id = 0; + unsigned long Size = 0; + unsigned long MTime = 0; StrBuf FileName = STRBUF_INITIALIZER; FileInfo* F; enum { @@ -1797,11 +1797,11 @@ ErrorExit: static void ParseLine (InputData* D) /* Parse a LINE line */ { - unsigned File; - unsigned Segment; - cc65_line Line; - cc65_addr Start; - cc65_addr End; + unsigned File = 0; + unsigned Segment = 0; + cc65_line Line = 0; + cc65_addr Start = 0; + cc65_addr End = 0; cc65_line_type Type = CC65_LINE_ASM; unsigned Count = 0; LineInfo* L; @@ -1951,12 +1951,12 @@ ErrorExit: static void ParseSegment (InputData* D) /* Parse a SEGMENT line */ { - unsigned Id; - cc65_addr Start; - cc65_addr Size; + unsigned Id = 0; + cc65_addr Start = 0; + cc65_addr Size = 0; StrBuf SegName = STRBUF_INITIALIZER; StrBuf OutputName = STRBUF_INITIALIZER; - unsigned long OutputOffs; + unsigned long OutputOffs = 0; SegInfo* S; enum { ibNone = 0x00, -- 2.39.5