mirror of
https://github.com/brouhaha/dis6502.git
synced 2025-02-17 07:32:46 +00:00
assign dummy value to operand for single-byte case to avoid warning.
This commit is contained in:
parent
30b423e3cb
commit
411f589ffa
1
main.c
1
main.c
@ -82,6 +82,7 @@ void trace_inst (addr_t addr)
|
||||
switch(ip->nb)
|
||||
{
|
||||
case 1:
|
||||
operand = 0; /* only to avoid "may be used unitialized" warning */
|
||||
break;
|
||||
case 2:
|
||||
operand = getbyte(addr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user