From e2c2f22be7e4df4ceb9a4c7e6c1695d0aeef7865 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Mon, 7 May 2018 17:21:55 +0200 Subject: Added a diagnostic for attributes dec after def The new warning is raise for function declaration after a function definition that introduce new attributes, which are ignored. Bug 23385 --- cparser/Diagnostics.mli | 1 + 1 file changed, 1 insertion(+) (limited to 'cparser/Diagnostics.mli') diff --git a/cparser/Diagnostics.mli b/cparser/Diagnostics.mli index 75865cb2..ea8f2159 100644 --- a/cparser/Diagnostics.mli +++ b/cparser/Diagnostics.mli @@ -49,6 +49,7 @@ type warning_type = | Unused_parameter (** unused function parameter *) | Wrong_ais_parameter (** wrong parameter type for ais replacement *) | Unused_ais_parameter (** unused builtin ais parameter *) + | Ignored_attributes (** attributes declarations after definition *) 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 -- cgit