warningtypes
W2040
Forbidden operation on a possibly secret value (basic mode)
Warnings fail a build only with --deny-warnings. Change this one's level in wowlua.json: "check": { "lints": { "W2040": "allow" } } (or "deny").
Related: E2040, the error form: Forbidden operation on a possibly secret value (strict mode)
Where the specification covers it
Nearby codes
| code | summary |
|---|---|
| W1033 | Load order cannot be determined (dynamic names, several writers, external names); files keep their source order |
| W1034 | Name read at load time but only defined at run time |
| W1035 | Usage-analysis dependency contradicts build.load-order; the listed order is kept (contradicting imports are E1035) |
| W2055 | Too many arguments to an unannotated function (basic mode). Replaces the second meaning of W2006. |
| W2060 | Division or modulo by a literal zero: WoW raises "Division by zero" (any mode) |
| W2057 | coroutine.yield inside a function passed to pcall/xpcall/a C callback (cannot yield across that boundary in Lua 5.1) |