From d70aa80d71299c24ebd71537cfd620eff2b7e50d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Jul 2020 15:01:17 +0200 Subject: Improve struct packing Unfortunately there is no warning like Wpadded but only for internal padding, so that can't be turned on, but if there was, after this commit the build would be clean with it. Maybe some day... --- pugl/detail/x11.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pugl/detail/x11.h') diff --git a/pugl/detail/x11.h b/pugl/detail/x11.h index 47d9225..cf647ed 100644 --- a/pugl/detail/x11.h +++ b/pugl/detail/x11.h @@ -61,16 +61,16 @@ struct PuglWorldInternalsImpl { struct PuglInternalsImpl { Display* display; - int screen; XVisualInfo* vi; Window win; -#ifdef HAVE_XCURSOR - unsigned cursorShape; -#endif XIC xic; PuglSurface* surface; PuglEvent pendingConfigure; PuglEvent pendingExpose; + int screen; +#ifdef HAVE_XCURSOR + unsigned cursorShape; +#endif }; static inline PuglStatus -- cgit v1.2.1