diff options
author | Bernhard Schommer <bschommer@users.noreply.github.com> | 2018-08-20 11:09:33 +0200 |
---|---|---|
committer | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2018-08-20 11:09:33 +0200 |
commit | 939977c7142222d0ec0b67322b06daa187a7b829 (patch) | |
tree | 78fa95dbe10be83c51df063999695f7ea62e681d /cparser/Diagnostics.mli | |
parent | b9a6a50546222269bb9445d0d21d948028b2720a (diff) | |
download | compcert-939977c7142222d0ec0b67322b06daa187a7b829.tar.gz compcert-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.mli | 1 |
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 |