Do not use void in expressions¶
[void] A void expression was used.
This warning category is spelled [void] by qmllint.
Do not use void expressions¶
What happened?¶
A JavaScript void expression was used.
Why is this bad?¶
The void expression has become mostly redundant and can obscure the logic of some code by suppressing returned values. It is also prohibited in many code styles for being non-obvious and hard to read.
Example¶
To fix this warning, remove or replace the use of void: