zoom: Fixed some warnings with -Wall
This commit is contained in:
parent
6a92bd8d25
commit
c8331e451a
1 changed files with 2 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
#include <zoom/init.h>
|
#include <zoom/init.h>
|
||||||
#include <zoom/render.h>
|
#include <zoom/render.h>
|
||||||
#include <zoom/player.h>
|
#include <zoom/player.h>
|
||||||
|
@ -25,7 +25,6 @@ void GLXinit();
|
||||||
void GLXinit() {
|
void GLXinit() {
|
||||||
char *str = "Zoom";
|
char *str = "Zoom";
|
||||||
XTextProperty name;
|
XTextProperty name;
|
||||||
XWMHints wmhints;
|
|
||||||
XSizeHints shints;
|
XSizeHints shints;
|
||||||
XClassHint chint;
|
XClassHint chint;
|
||||||
XVisualInfo *vi;
|
XVisualInfo *vi;
|
||||||
|
@ -150,7 +149,7 @@ int main() {
|
||||||
frames++;
|
frames++;
|
||||||
tocks += delta*1000;
|
tocks += delta*1000;
|
||||||
if(tocks > 1000000) {
|
if(tocks > 1000000) {
|
||||||
fprintf(stderr, "%u\n", frames);
|
fprintf(stderr, "%lu\n", frames);
|
||||||
frames = 0;
|
frames = 0;
|
||||||
tocks -= 1000000;
|
tocks -= 1000000;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue