Skip to content
This repository
tag: v3596
Fetching contributors…

Cannot retrieve contributors at this time

file 71 lines (45 sloc) 1.923 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
(*
Copyright © 2011, 2012 MLstate

This file is part of Opa.

Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.

Opa is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.

You should have received a copy of the GNU Affero General Public License
along with Opa. If not, see <http://www.gnu.org/licenses/>.
*)
(* CF mli *)

let warning_set =
  let s = WarningClass.Set.create () in
  let (!+) w = WarningClass.Set.add s w in
  let (?+) w = if BuildInfos.is_release then () else !+ w in
  let (!++) s' = WarningClass.Set.add_set s s' in
  (* let (?++) s' = if BuildInfos.is_release then () else !++ s' in *)
  (* combine there all loaded warning_set you want to be available in opa S3 *)
  (* for organisation layout, please use alphabetic order *)

  (* CONDITIONS *)

  ?+ WarningClass.cond ;

  (* PASSES (alphabetic order) *)

  !++ ObjectFiles.warning_set ;

  (* !++ Pass_BslLoading.warning_set ; *)

  !++ QmlDbGen.warning_set ;

  !++ Imp_Compiler.warning_set ;

  !++ QmlSimpleSlicer.warning_set ;

  !++ QmlTyperWarnings.warning_set ;

  !++ SurfaceAstRenaming.warning_set ;

  !++ I18nAndComputedString.warning_set ;

  !++ Flat_Compiler.warning_set ;

  !++ Pass_CheckPatternMatching.warning_set ;

  !++ Pass_CodingDirectives.warning_set ;

  !++ Pass_MacroExpansion.warning_set ;

  !++ SurfaceAstStaticInclude.warning_set ;

  !++ Pass_InstrumentForClosureSerialization.warning_set;

  !++ Pass_CompileRecursiveValues.Warning.set;

  !++ (WarningClass.Set.create_from_list [
         WarningClass.bsl;
       ]);


  (* finally return the global warning_set *)
  s
Something went wrong with that request. Please try again.