Compiler warnings
The Small language has 24 warning messages, although only 3 turn up regularly. Even
though they are only warnings, you should correct them as they will confuse n00bs
compiling them for the first time. More importantly they may indicate a logic error
in your code.
- 215 expression has no effect
- This usually means you have a logic error in your code - using == where you mean =
will cause this, among other things.
- 217 loose indentation
- This means you have not indented your code properly. If your code looks
indented properly, it may be because you have a mixture of tabs and spaces
in front of your code. This also often turns up when you have mismatched
brackets (more on that later).
- 219 local variable identifier shadows a symbol at a preceding level
- This occurs when you define two variables with the same name either
within the same function, or one within a function and one being a global
variable. It also occurs if you give a local variable the same name as
the function it is in.
A complete list of compiler warnings is available in
The Small Manual.