summaryrefslogtreecommitdiff
path: root/compilerplugins/README
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-10-09 14:50:19 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-09 17:25:27 +0200
commit13e39545eac66b628f9ef3c89cc03d2003e5d317 (patch)
tree0b29dc22c823d46c69782c5510bc0a340fcf9abe /compilerplugins/README
parent02a8d36ebf3d54784903f2899eafe010bedf2f4c (diff)
compiler check for unused variables
This is for variables that the compiler itself cannot figure out (e.g. non-trivial ctors). The classes need to be marked manually. Change-Id: I0109972e11e20578b1adc32065f701a871ee21aa
Diffstat (limited to 'compilerplugins/README')
-rw-r--r--compilerplugins/README7
1 files changed, 7 insertions, 0 deletions
diff --git a/compilerplugins/README b/compilerplugins/README
index 98ac70c85ef5..2430d40fb72e 100644
--- a/compilerplugins/README
+++ b/compilerplugins/README
@@ -21,6 +21,13 @@ are found or explicitly using --enable-compiler-plugins.
The compile plugin is used during normal compilation to perform additional checks.
All warnings and errors are marked '[loplugin]' in the message.
+==== Unused variable check ====
+
+- unused parameter 'foo' [loplugin]
+- unused variable 'foo' [loplugin]
+
+Additional check for unused variables.
+
== Code documentation / howtos ==