mirror of
https://github.com/brouhaha/dis6502.git
synced 2024-06-08 04:29:49 +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)
|
switch(ip->nb)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
operand = 0; /* only to avoid "may be used unitialized" warning */
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
operand = getbyte(addr);
|
operand = getbyte(addr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user