warningtypes
W2060
Division or modulo by a literal zero: WoW raises "Division by zero" (any mode)
Warnings fail a build only with --deny-warnings. Change this one's level in wowlua.json: "check": { "lints": { "W2060": "allow" } } (or "deny").
Where the specification covers it
- Appendix C. Decision Log · Standard library
- 2. Types · 2.8 Globals
Nearby codes
| code | summary |
|---|---|
| W1035 | Usage-analysis dependency contradicts build.load-order; the listed order is kept (contradicting imports are E1035) |
| W2040 | Forbidden operation on a possibly secret value (basic mode) |
| W2055 | Too many arguments to an unannotated function (basic mode). Replaces the second meaning of W2006. |
| W2057 | coroutine.yield inside a function passed to pcall/xpcall/a C callback (cannot yield across that boundary in Lua 5.1) |
| W3021 | Lexical binding named like a core decorator is not a re-export of it (ignored in decorator position) |
| W3030 | Use of a @deprecated declaration |