Skip to content

Commit

Permalink
Bug 1204134 (attempt 2) - Fix and disallow warnings in config/moz.bui…
Browse files Browse the repository at this point in the history
…ld. r=glandium.
  • Loading branch information
nnethercote committed Sep 16, 2015
1 parent f0aa7a8 commit 25ef63f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions config/moz.build
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions config/pathsub.c
Expand Up @@ -34,7 +34,7 @@
char *program;

void
fail(char *format, ...)
fail(const char *format, ...)
{
int error;
va_list ap;
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions config/pathsub.h
Expand Up @@ -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);
Expand Down

0 comments on commit 25ef63f

Please sign in to comment.