aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2009-08-31 02:23:47 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2009-08-31 02:23:47 -0700
commitb167c885e488ddc522c83d543f2a522d183117de (patch)
tree2ab4802c88237004162c8072355f51941b6960aa
parent4f44392c4d76351ca9280be7c8d821e1c9f10ff9 (diff)
downloadmirror-meh-b167c885e488ddc522c83d543f2a522d183117de.tar.gz
mirror-meh-b167c885e488ddc522c83d543f2a522d183117de.tar.bz2
mirror-meh-b167c885e488ddc522c83d543f2a522d183117de.zip
fix compiler warnings
-rw-r--r--configs/debug.mk2
-rw-r--r--src/meh.h2
-rw-r--r--src/netpbm.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/configs/debug.mk b/configs/debug.mk
index 2cec38a..59d13e2 100644
--- a/configs/debug.mk
+++ b/configs/debug.mk
@@ -1 +1 @@
-CFLAGS += -O0 -g -Wall
+CFLAGS += -O0 -g -Wall -Wextra
diff --git a/src/meh.h b/src/meh.h
index 88f36e3..a2aa42f 100644
--- a/src/meh.h
+++ b/src/meh.h
@@ -35,6 +35,7 @@ void setaspect(unsigned int w, unsigned int h);
void xinit();
void drawimage(XImage *ximg, unsigned int width, unsigned int height);
XImage *getimage(struct image *img, unsigned int width, unsigned int height, int fast);
+void freeXImg(XImage *ximg);
#ifdef TDEBUG
#define TDEBUG_START \
@@ -58,3 +59,4 @@ extern struct imageformat netpbm;
extern struct imageformat imagemagick;
+
diff --git a/src/netpbm.c b/src/netpbm.c
index ef61c8e..2c91879 100644
--- a/src/netpbm.c
+++ b/src/netpbm.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <ctype.h>
#include "meh.h"