From: Ralf Jung Date: Fri, 27 Sep 2013 11:05:27 +0000 (+0200) Subject: use -Wextra and fix the warnings it caused X-Git-Url: https://git.ralfj.de/gltest.git/commitdiff_plain/c4859cf18f397a5fda57e5719134dddbcb23ef2a?ds=inline use -Wextra and fix the warnings it caused --- diff --git a/Makefile b/Makefile index 0322bfb..2fa9312 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS := -Wall -g -O1 +CFLAGS := -Wall -Wextra -g -O1 COMMON_SRC = gltest.cpp glwindow.cpp glutil.cpp COMMON_HDR = glwindow.h glutil.h diff --git a/eglinfo.c b/eglinfo.c index a0afc08..4a959f1 100644 --- a/eglinfo.c +++ b/eglinfo.c @@ -102,7 +102,7 @@ PrintConfigs(EGLDisplay d) /** - * Print table of all available configurations. + * If possible, irint table of all available configurations. */ static void PrintModes(EGLDisplay d) @@ -137,13 +137,15 @@ PrintModes(EGLDisplay d) } } } +#else + (void)d; /* mark d as unused */ #endif } int -main(int argc, char *argv[]) +main(void) { int maj, min; EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);