From 603142e23528061e7ba5bdbcb466e676237745a8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 8 Jan 2023 22:19:02 +0100 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libfonts.h | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'libfonts.h') diff --git a/libfonts.h b/libfonts.h index bdf9163..2c7202a 100644 --- a/libfonts.h +++ b/libfonts.h @@ -12,6 +12,12 @@ #define LIBFONTS_CONTEXT_VERSION 0 +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wpadded" +#endif + + /** * Style-based default fonts */ @@ -1242,12 +1248,6 @@ struct libfonts_rendering_settings { */ uint32_t reference_height; - /** - * The output device's physical subpixel order, - * when it is not rotated - */ - enum libfonts_subpixel_order subpixel_order; - /** * If the product of the applicable pixel densities * (horizontal and vertical) is less than this @@ -1267,6 +1267,12 @@ struct libfonts_rendering_settings { */ double min_dpsqi_for_subpixel; + /** + * The output device's physical subpixel order, + * when it is not rotated + */ + enum libfonts_subpixel_order subpixel_order; + /** * Antialiasing mode for horizontal (on unrotated output), grey text */ @@ -1343,14 +1349,14 @@ struct libfonts_output { int output_screen; /** - * Transformation that is applied to the output + * The output's subpixel order, disregarding applied rotation */ - struct libfonts_transformation output_transformation; + enum libfonts_subpixel_order unrotated_subpixel_order; /** - * The output's subpixel order, disregarding applied rotation + * Transformation that is applied to the output */ - enum libfonts_subpixel_order unrotated_subpixel_order; + struct libfonts_transformation output_transformation; /** * The output's horizontal pixel density (pixels per inch), @@ -1619,6 +1625,11 @@ struct libfonts_context { }; +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + + /** * `NULL`-terminated list of environment variables * that affect the execution of the library -- cgit v1.2.3-70-g09d2