mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1204134 (attempt 2) - Fix and disallow warnings in config/moz.build. r=glandium.
This commit is contained in:
parent
012259f72d
commit
5f2c2de01d
@ -43,9 +43,6 @@ PYTHON_UNIT_TESTS += [
|
||||
if CONFIG['GNU_CC'] and CONFIG['MOZ_OPTIMIZE']:
|
||||
CFLAGS += ['-O3']
|
||||
|
||||
# XXX: We should fix these warnings.
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
||||
HOST_DEFINES = {
|
||||
'UNICODE': True,
|
||||
'_UNICODE': True,
|
||||
|
@ -34,7 +34,7 @@
|
||||
char *program;
|
||||
|
||||
void
|
||||
fail(char *format, ...)
|
||||
fail(const char *format, ...)
|
||||
{
|
||||
int error;
|
||||
va_list ap;
|
||||
@ -143,7 +143,7 @@ xbasename(char *path)
|
||||
}
|
||||
|
||||
void
|
||||
xchdir(char *dir)
|
||||
xchdir(const char *dir)
|
||||
{
|
||||
if (chdir(dir) < 0)
|
||||
fail("cannot change directory to %s", dir);
|
||||
|
@ -25,13 +25,13 @@
|
||||
|
||||
extern char *program;
|
||||
|
||||
extern void fail(char *format, ...);
|
||||
extern void fail(const char *format, ...);
|
||||
extern char *getcomponent(char *path, char *name);
|
||||
extern char *ino2name(ino_t ino);
|
||||
extern void *xmalloc(size_t size);
|
||||
extern char *xstrdup(char *s);
|
||||
extern char *xbasename(char *path);
|
||||
extern void xchdir(char *dir);
|
||||
extern void xchdir(const char *dir);
|
||||
|
||||
/* Relate absolute pathnames from and to returning the result in outpath. */
|
||||
extern int relatepaths(char *from, char *to, char *outpath);
|
||||
|
Loading…
Reference in New Issue
Block a user