v0.9
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

codesummary
W1033Load order cannot be determined (dynamic names, several writers, external names); files keep their source order
W1034Name read at load time but only defined at run time
W1035Usage-analysis dependency contradicts build.load-order; the listed order is kept (contradicting imports are E1035)
W2055Too many arguments to an unannotated function (basic mode). Replaces the second meaning of W2006.
W2060Division or modulo by a literal zero: WoW raises "Division by zero" (any mode)
W2057coroutine.yield inside a function passed to pcall/xpcall/a C callback (cannot yield across that boundary in Lua 5.1)

All diagnostics →