diff options
author | Eric Blake <ebb9@byu.net> | 2009-12-22 15:03:48 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-12-23 06:45:58 -0700 |
commit | b72fe29b144b3cc850cd0fb39a7de10a011e35cb (patch) | |
tree | 738c77e7a4f80b37a67dad61a309274fe06d8b5c /m4/setenv.m4 | |
parent | 37a41419bf31d9a6150f075bb558f216f9f78f1f (diff) | |
download | gnulib-b72fe29b144b3cc850cd0fb39a7de10a011e35cb.tar.gz |
tests: avoid compiler warnings
Silence more warnings during coreutils build.
* tests/test-fcntl.c (main): Delete unused parameters.
* tests/test-freopen-safer.c (main): Likewise.
* tests/test-xalloc-die.c (main): Mark unused parameters.
* tests/test-fseeko.c (main): Likewise.
* tests/test-ftello.c (main): Likewise.
* tests/test-nanosleep.c (main): Avoid declaration warning.
* tests/test-sleep.c (main): Likewise.
* tests/test-unsetenv.c (main): Silence warning about string
literal.
* m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4/setenv.m4')
-rw-r--r-- | m4/setenv.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/setenv.m4 b/m4/setenv.m4 index 29e6866742..a4cfb9ecea 100644 --- a/m4/setenv.m4 +++ b/m4/setenv.m4 @@ -1,4 +1,4 @@ -# setenv.m4 serial 14 +# setenv.m4 serial 15 dnl Copyright (C) 2001-2004, 2006-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -77,7 +77,7 @@ int unsetenv(); #include <stdlib.h> ]], [[ char entry[] = "b=2"; - if (putenv ("a=1")) return 1; + if (putenv ((char *) "a=1")) return 1; if (putenv (entry)) return 2; entry[0] = 'a'; unsetenv ("a"); |