aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cerrors.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-02-09 15:54:31 +0100
committerBernhard Schommer <bschommer@users.noreply.github.com>2017-02-17 14:09:56 +0100
commit4a8f7dc7e9f3f57f08cca9ca2de19214cbe4dc77 (patch)
treedf6c6de13d537ace13ef299187986d04a8c08971 /cparser/Cerrors.mli
parent201ca60922ede81a0861e76f9399fc400fafb440 (diff)
downloadcompcert-4a8f7dc7e9f3f57f08cca9ca2de19214cbe4dc77.tar.gz
compcert-4a8f7dc7e9f3f57f08cca9ca2de19214cbe4dc77.zip
Extended unused vars check for params.
The test now also checks whether the parameter are used at all in the function body. Bug 19872
Diffstat (limited to 'cparser/Cerrors.mli')
-rw-r--r--cparser/Cerrors.mli1
1 files changed, 1 insertions, 0 deletions
diff --git a/cparser/Cerrors.mli b/cparser/Cerrors.mli
index fb987bca..c351443c 100644
--- a/cparser/Cerrors.mli
+++ b/cparser/Cerrors.mli
@@ -46,6 +46,7 @@ type warning_type =
| CompCert_conformance (** features that are not part of the CompCert C core language *)
| Inline_asm_sdump (** inline assembler used in combination of sdump *)
| Unused_variable (** unused local variables *)
+ | Unused_parameter (** unused function parameter *)
val warning : (string * int) -> warning_type -> ('a, Format.formatter, unit, unit, unit, unit) format6 -> 'a
(** [warning (f,c) w fmt arg1 ... argN] formats the arguments [arg1] to [argN] as warining according to