From b4b1fa3d47c37829be30367ced9aa89abcd7f5c7 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Wed, 29 Aug 2018 16:17:41 +0200 Subject: New diagnostic for reduced alignment (#117) The new diagnostic triggers if an `_Alignas` or an `aligned` attribute or a `packed` attribute requests an alignment smaller than the natural alignment. Bug 23389 --- 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 2a3643d5..ded8019f 100644 --- a/cparser/Diagnostics.mli +++ b/cparser/Diagnostics.mli @@ -54,6 +54,7 @@ type warning_type = | 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 *) + | Reduced_alignment (** alignment reduction *) 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