diff options
author | David Robillard <d@drobilla.net> | 2020-07-05 15:01:17 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-05 18:47:39 +0200 |
commit | d70aa80d71299c24ebd71537cfd620eff2b7e50d (patch) | |
tree | 2b1606491ac1f7c6a4063549fb81f5597d0b3750 /test/test_redisplay.c | |
parent | abf44b129480937cd31d6585183d266a496ee2a4 (diff) | |
download | pugl-d70aa80d71299c24ebd71537cfd620eff2b7e50d.tar.gz pugl-d70aa80d71299c24ebd71537cfd620eff2b7e50d.tar.bz2 pugl-d70aa80d71299c24ebd71537cfd620eff2b7e50d.zip |
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...
Diffstat (limited to 'test/test_redisplay.c')
-rw-r--r-- | test/test_redisplay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_redisplay.c b/test/test_redisplay.c index 108a433..91b606f 100644 --- a/test/test_redisplay.c +++ b/test/test_redisplay.c @@ -47,9 +47,9 @@ typedef enum { typedef struct { - PuglTestOptions opts; PuglWorld* world; PuglView* view; + PuglTestOptions opts; State state; } PuglTest; @@ -100,9 +100,9 @@ onEvent(PuglView* view, const PuglEvent* event) int main(int argc, char** argv) { - PuglTest app = {puglParseTestOptions(&argc, &argv), - puglNewWorld(PUGL_PROGRAM, 0), + PuglTest app = {puglNewWorld(PUGL_PROGRAM, 0), NULL, + puglParseTestOptions(&argc, &argv), START}; // Set up view |