diff options
author | Eric Anholt <eric@anholt.net> | 2014-01-31 15:19:09 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-01-31 15:52:28 -0800 |
commit | 36847f88a7790d3bb917a82494e04fff708b39dd (patch) | |
tree | d08c95515e231023d02c10ab499fe81e24ae113c /test/egl_common.c | |
parent | 7c660c5c7ae94043a2c4b9d260ccc9367992989e (diff) | |
download | libepoxy-36847f88a7790d3bb917a82494e04fff708b39dd.tar.gz |
Fix compiler warnings in the tests.
I didn't have CWARNFLAGS in the Makefile.am, so lots of things that
would generate warnings had crept in.
Diffstat (limited to 'test/egl_common.c')
-rw-r--r-- | test/egl_common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/egl_common.c b/test/egl_common.c index 4cc0409..d2f11a3 100644 --- a/test/egl_common.c +++ b/test/egl_common.c @@ -23,6 +23,7 @@ #include <err.h> #include <epoxy/egl.h> +#include "egl_common.h" /** * Do whatever it takes to get us an EGL display for the system. @@ -34,15 +35,17 @@ get_egl_display_or_skip(void) { Display *dpy = XOpenDisplay(NULL); EGLint major, minor; + EGLDisplay *edpy; + bool ok; if (!dpy) errx(77, "couldn't open display\n"); - EGLDisplay *edpy = eglGetDisplay(dpy); + edpy = eglGetDisplay(dpy); if (!edpy) errx(1, "Couldn't get EGL display for X11 Display.\n"); - bool ok = eglInitialize(edpy, &major, &minor); + ok = eglInitialize(edpy, &major, &minor); if (!ok) errx(1, "eglInitialize() failed\n"); |