aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Diagnostics.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Diagnostics.ml')
-rw-r--r--cparser/Diagnostics.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/cparser/Diagnostics.ml b/cparser/Diagnostics.ml
index e3258a38..f18d1b2d 100644
--- a/cparser/Diagnostics.ml
+++ b/cparser/Diagnostics.ml
@@ -91,6 +91,7 @@ type warning_type =
| Unused_variable
| Unused_parameter
| Wrong_ais_parameter
+ | Unused_ais_parameter
(* List of active warnings *)
let active_warnings: warning_type list ref = ref [
@@ -112,6 +113,7 @@ let active_warnings: warning_type list ref = ref [
Literal_range;
Inline_asm_sdump;
Wrong_ais_parameter;
+ Unused_ais_parameter;
]
(* List of errors treated as warning *)
@@ -142,6 +144,7 @@ let string_of_warning = function
| Unused_variable -> "unused-variable"
| Unused_parameter -> "unused-parameter"
| Wrong_ais_parameter -> "wrong-ais-parameter"
+ | Unused_ais_parameter -> "unused-ais-parameter"
(* Activate the given warning *)
let activate_warning w () =
@@ -219,6 +222,7 @@ let werror () =
Inline_asm_sdump;
Unused_variable;
Wrong_ais_parameter;
+ Unused_ais_parameter;
]
(* Generate the warning key for the message *)
@@ -396,6 +400,7 @@ let warning_options =
error_option Unused_variable @
error_option Unused_parameter @
error_option Wrong_ais_parameter @
+ error_option Unused_ais_parameter @
[Exact ("-Wfatal-errors"), Set error_fatal;
Exact ("-fdiagnostics-color"), Ignore; (* Either output supports it or no color *)
Exact ("-fno-diagnostics-color"), Unset color_diagnostics;