diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-10-20 17:07:06 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-10-20 17:07:06 +0000 |
commit | dae2b97240892f213851735ced8add760d640a4d (patch) | |
tree | 150d1ab4d00974bf3aebcc966b86e3334ddf13d8 /tools/checkwps | |
parent | 128b84c5821242c446ded2864e25a12671d47110 (diff) | |
download | rockbox-dae2b97240892f213851735ced8add760d640a4d.tar.gz rockbox-dae2b97240892f213851735ced8add760d640a4d.zip |
compile checkwps with -Wall, to avoid accidentally breaking it again when a function prototype changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23291 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/checkwps')
-rw-r--r-- | tools/checkwps/checkwps.c | 3 | ||||
-rw-r--r-- | tools/checkwps/checkwps.make | 2 | ||||
-rw-r--r-- | tools/checkwps/file.h | 9 |
3 files changed, 12 insertions, 2 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index d72938b6c1..4736f31e76 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c | |||
@@ -26,9 +26,11 @@ | |||
26 | #include "checkwps.h" | 26 | #include "checkwps.h" |
27 | #include "resize.h" | 27 | #include "resize.h" |
28 | #include "wps.h" | 28 | #include "wps.h" |
29 | #include "skin_engine.h" | ||
29 | #include "wps_internals.h" | 30 | #include "wps_internals.h" |
30 | #include "settings.h" | 31 | #include "settings.h" |
31 | #include "viewport.h" | 32 | #include "viewport.h" |
33 | #include "file.h" | ||
32 | 34 | ||
33 | bool debug_wps = true; | 35 | bool debug_wps = true; |
34 | int wps_verbose_level = 0; | 36 | int wps_verbose_level = 0; |
@@ -313,7 +315,6 @@ int main(int argc, char **argv) | |||
313 | int filearg = 1; | 315 | int filearg = 1; |
314 | 316 | ||
315 | struct wps_data wps; | 317 | struct wps_data wps; |
316 | struct screen* wps_screen = &screens[SCREEN_MAIN]; | ||
317 | 318 | ||
318 | /* No arguments -> print the help text | 319 | /* No arguments -> print the help text |
319 | * Also print the help text upon -h or --help */ | 320 | * Also print the help text upon -h or --help */ |
diff --git a/tools/checkwps/checkwps.make b/tools/checkwps/checkwps.make index b28d8e8411..13fef935dd 100644 --- a/tools/checkwps/checkwps.make +++ b/tools/checkwps/checkwps.make | |||
@@ -7,7 +7,7 @@ | |||
7 | # $Id$ | 7 | # $Id$ |
8 | # | 8 | # |
9 | 9 | ||
10 | FLAGS=-g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" $(TARGET) | 10 | FLAGS=-g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" $(TARGET) -Wall |
11 | 11 | ||
12 | SRC= $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES) | 12 | SRC= $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES) |
13 | 13 | ||
diff --git a/tools/checkwps/file.h b/tools/checkwps/file.h index 4256c1ee37..a14d7f5b91 100644 --- a/tools/checkwps/file.h +++ b/tools/checkwps/file.h | |||
@@ -5,3 +5,12 @@ | |||
5 | /* Wrapper - required for O_RDONLY */ | 5 | /* Wrapper - required for O_RDONLY */ |
6 | 6 | ||
7 | #include <fcntl.h> | 7 | #include <fcntl.h> |
8 | |||
9 | extern ssize_t read(int fd, void *buf, size_t count); | ||
10 | extern ssize_t write(int fd, const void *buf, size_t count); | ||
11 | extern off_t lseek(int fildes, off_t offset, int whence); | ||
12 | extern int close(int fd); | ||
13 | |||
14 | /* strlcpy doesn't belong here (it's in string.h in the rockbox sources), | ||
15 | * but this avoids complicated magic to override the system string.h */ | ||
16 | size_t strlcpy(char *dst, const char *src, size_t siz); | ||