From 939977c7142222d0ec0b67322b06daa187a7b829 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Mon, 20 Aug 2018 11:09:33 +0200 Subject: Added warning for incomplete tentative static defs (#114) Tentative static definitions with incomplete type are not allowed in C99. However most popular compilers support them and warn about them. Bug 23377 --- 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 62c54314..2a3643d5 100644 --- a/cparser/Diagnostics.mli +++ b/cparser/Diagnostics.mli @@ -53,6 +53,7 @@ type warning_type = | Extern_after_definition (** extern declaration after non-extern definition *) | Static_in_inline (** static variable in non-static inline function *) | Flexible_array_extensions (** usange of structs with flexible arrays in structs and arrays *) + | Tentative_incomplete_static (** static tentative definition with incomplete type *) 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