From 8a522c00b7e7bdbcc1aecaab53c92a850152cc5a Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Thu, 14 Mar 2024 17:44:10 +0100 Subject: [PATCH] Update warning numbers info in build schema --- docs/docson/build-schema.json | 2 +- jscomp/ext/bsc_warnings.ml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docson/build-schema.json b/docs/docson/build-schema.json index 09d2d4923a..32702d9cd5 100644 --- a/docs/docson/build-schema.json +++ b/docs/docson/build-schema.json @@ -439,7 +439,7 @@ "properties": { "number": { "type": "string", - "description": "Default: -40+6+7+27+32..39+44+45 [Here](https://caml.inria.fr/pub/docs/manual-ocaml/comp.html#sec270) for the meanings of the warning flags" + "description": "Default: \"+a-4-9-20-40-41-42-50-61-102\". Go [here](https://rescript-lang.org/docs/manual/latest/warning-numbers) for the meanings of the warning flags" }, "error": { "oneOf": [ diff --git a/jscomp/ext/bsc_warnings.ml b/jscomp/ext/bsc_warnings.ml index 833b46443a..9769142843 100644 --- a/jscomp/ext/bsc_warnings.ml +++ b/jscomp/ext/bsc_warnings.ml @@ -69,6 +69,7 @@ - 102 Bs_polymorphic_comparison *) +(* If you change this, don't forget to adapt docs/docson/build-schema.json as well. *) let defaults_w = "+a-4-9-20-40-41-42-50-61-102" let defaults_warn_error = "-a+5+6+101+109"