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... --- test/test_show_hide.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_show_hide.c') diff --git a/test/test_show_hide.c b/test/test_show_hide.c index 7b6d4f4..ebbbee9 100644 --- a/test/test_show_hide.c +++ b/test/test_show_hide.c @@ -41,9 +41,9 @@ typedef enum { } State; typedef struct { - PuglTestOptions opts; PuglWorld* world; PuglView* view; + PuglTestOptions opts; State state; } PuglTest; @@ -104,9 +104,9 @@ tick(PuglWorld* world) int main(int argc, char** argv) { - PuglTest test = {puglParseTestOptions(&argc, &argv), - puglNewWorld(PUGL_PROGRAM, 0), + PuglTest test = {puglNewWorld(PUGL_PROGRAM, 0), NULL, + puglParseTestOptions(&argc, &argv), START}; // Set up view -- cgit v1.2.1