mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
128b84c582
commit
dae2b97240
3 changed files with 12 additions and 2 deletions
|
|
@ -26,9 +26,11 @@
|
||||||
#include "checkwps.h"
|
#include "checkwps.h"
|
||||||
#include "resize.h"
|
#include "resize.h"
|
||||||
#include "wps.h"
|
#include "wps.h"
|
||||||
|
#include "skin_engine.h"
|
||||||
#include "wps_internals.h"
|
#include "wps_internals.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "viewport.h"
|
#include "viewport.h"
|
||||||
|
#include "file.h"
|
||||||
|
|
||||||
bool debug_wps = true;
|
bool debug_wps = true;
|
||||||
int wps_verbose_level = 0;
|
int wps_verbose_level = 0;
|
||||||
|
|
@ -313,7 +315,6 @@ int main(int argc, char **argv)
|
||||||
int filearg = 1;
|
int filearg = 1;
|
||||||
|
|
||||||
struct wps_data wps;
|
struct wps_data wps;
|
||||||
struct screen* wps_screen = &screens[SCREEN_MAIN];
|
|
||||||
|
|
||||||
/* No arguments -> print the help text
|
/* No arguments -> print the help text
|
||||||
* Also print the help text upon -h or --help */
|
* Also print the help text upon -h or --help */
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
FLAGS=-g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" $(TARGET)
|
FLAGS=-g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" $(TARGET) -Wall
|
||||||
|
|
||||||
SRC= $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES)
|
SRC= $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,12 @@
|
||||||
/* Wrapper - required for O_RDONLY */
|
/* Wrapper - required for O_RDONLY */
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
extern ssize_t read(int fd, void *buf, size_t count);
|
||||||
|
extern ssize_t write(int fd, const void *buf, size_t count);
|
||||||
|
extern off_t lseek(int fildes, off_t offset, int whence);
|
||||||
|
extern int close(int fd);
|
||||||
|
|
||||||
|
/* strlcpy doesn't belong here (it's in string.h in the rockbox sources),
|
||||||
|
* but this avoids complicated magic to override the system string.h */
|
||||||
|
size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue