Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
warning: [W180] Unreachable code problem?
#5
(09-10-2021, 06:17 PM)maeloterkim Wrote: Hi  if i compile this, says

warning: [W180] Unreachable code

but i don't know why


the version is  zxbasic-1.15.2





Code:
' EXAMPE UNRECHABLE CODE

declare sub mySub()

Dim myNumber As uByte
cls

myBucle:
    for myNumber = 0 to 7          
        mySub()                  
    next myNumber
    goto myBucle

sub mySub()

end sub

This is a bug. It's an spurious (wrong) warning.
I'll let you know when I fix it. Thanks for reporting!
Shy
Reply


Messages In This Thread
RE: warning: [W180] Unreachable code problem? - by boriel - 09-13-2021, 10:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)