From c4859cf18f397a5fda57e5719134dddbcb23ef2a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 27 Sep 2013 13:05:27 +0200 Subject: [PATCH] use -Wextra and fix the warnings it caused --- Makefile | 2 +- eglinfo.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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); -- 2.30.2