diff --git a/src/cc65/coptstop.c b/src/cc65/coptstop.c index 41dfb5526..59bbe6dc9 100644 --- a/src/cc65/coptstop.c +++ b/src/cc65/coptstop.c @@ -1732,7 +1732,7 @@ unsigned OptStackOps (CodeSeg* S) int I; int OldEntryCount; /* Old number of entries */ unsigned Used; /* What registers would be used */ - unsigned PushedRegs; /* Track if the same regs are used after the push */ + unsigned PushedRegs = 0; /* Track if the same regs are used after the push */ int RhsAChgIndex; /* Track if rhs is changed more than once */ int RhsXChgIndex; /* Track if rhs is changed more than once */ int IsRegAOptFunc = 0; /* Whether to use the RegA-only optimizations */ diff --git a/src/cc65/expr.c b/src/cc65/expr.c index 7ddd8f43a..1c8c25020 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -3871,8 +3871,8 @@ static void hieOr (ExprDesc *Expr) static void hieQuest (ExprDesc* Expr) /* Parse the ternary operator */ { - int FalseLab; - int TrueLab; + int FalseLab = 0; + int TrueLab = 0; CodeMark SkippedBranch; CodeMark TrueCodeEnd; ExprDesc Expr2; /* Expression 2 */