Bug 1204134 (attempt 2) - Fix and disallow warnings in config/moz.build. r=glandium.

This commit is contained in:
Nicholas Nethercote 2015-09-15 17:01:08 -07:00
parent 5a283a399e
commit 93b2be7ba2
3 changed files with 4 additions and 7 deletions

View File

@ -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,

View File

@ -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);

View File

@ -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);