aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cparser/Cerrors.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/cparser/Cerrors.ml b/cparser/Cerrors.ml
index c7b791e0..476aa419 100644
--- a/cparser/Cerrors.ml
+++ b/cparser/Cerrors.ml
@@ -18,6 +18,7 @@
open Format
open Commandline
+(* Should errors be treated as fatal *)
let error_fatal = ref false
(* Test if color diagnostics are available by testing if stderr is a tty
@@ -169,6 +170,9 @@ let wall () =
Inline_asm_sdump;
]
+let wnothing () =
+ active_warnings :=[]
+
(* Make all warnings an error *)
let werror () =
error_warnings:=[
@@ -329,7 +333,8 @@ let warning_options =
Exact ("-fdiagnostics-color"), Ignore; (* Either output supports it or no color *)
Exact ("-fno-diagnostics-color"), Unset color_diagnostics;
Exact ("-Werror"), Unit werror;
- Exact ("-Wall"), Unit wall;]
+ Exact ("-Wall"), Unit wall;
+ Exact ("-w"), Unit wnothing;]
let warning_help = {|Diagnostic options:
-Wall Enable all warnings