projects
/
gltest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8679824
)
use -Wextra and fix the warnings it caused
author
Ralf Jung
<post@ralfj.de>
Fri, 27 Sep 2013 11:05:27 +0000
(13:05 +0200)
committer
Ralf Jung
<post@ralfj.de>
Fri, 27 Sep 2013 11:05:27 +0000
(13:05 +0200)
Makefile
patch
|
blob
|
history
eglinfo.c
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 0322bfba8812f1f471bd924d05038f4f7df64d38..2fa9312d0c33c0721dd45c1b2eb961297af13373 100644
(file)
--- 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
COMMON_SRC = gltest.cpp glwindow.cpp glutil.cpp
COMMON_HDR = glwindow.h glutil.h
diff --git
a/eglinfo.c
b/eglinfo.c
index a0afc08b90e51f289dfff5a5a6df7d11fb247fca..4a959f1798a630fe95d328a5f698248080678876 100644
(file)
--- a/
eglinfo.c
+++ b/
eglinfo.c
@@
-102,7
+102,7
@@
PrintConfigs(EGLDisplay d)
/**
/**
- *
P
rint table of all available configurations.
+ *
If possible, i
rint table of all available configurations.
*/
static void
PrintModes(EGLDisplay d)
*/
static void
PrintModes(EGLDisplay d)
@@
-137,13
+137,15
@@
PrintModes(EGLDisplay d)
}
}
}
}
}
}
+#else
+ (void)d; /* mark d as unused */
#endif
}
int
#endif
}
int
-main(
int argc, char *argv[]
)
+main(
void
)
{
int maj, min;
EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
{
int maj, min;
EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);