aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Diagnostics.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bschommer@users.noreply.github.com>2018-08-20 11:09:33 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2018-08-20 11:09:33 +0200
commit939977c7142222d0ec0b67322b06daa187a7b829 (patch)
tree78fa95dbe10be83c51df063999695f7ea62e681d /cparser/Diagnostics.mli
parentb9a6a50546222269bb9445d0d21d948028b2720a (diff)
downloadcompcert-kvx-939977c7142222d0ec0b67322b06daa187a7b829.tar.gz
compcert-kvx-939977c7142222d0ec0b67322b06daa187a7b829.zip
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
Diffstat (limited to 'cparser/Diagnostics.mli')
-rw-r--r--cparser/Diagnostics.mli1
1 files changed, 1 insertions, 0 deletions
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