From: Eric Blake Date: Mon, 21 Sep 2009 16:28:01 +0000 (-0600) Subject: build: avoid compiler warnings on cygwin 1.5 X-Git-Tag: v8.0~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32f987af1274d3ed53244564ab537dce8e330e0a;p=thirdparty%2Fcoreutils.git build: avoid compiler warnings on cygwin 1.5 * src/copy.c (utimens_symlink): Avoid unused variables. * src/su.c (getusershell): Rely on gnulib for prototype. --- diff --git a/src/copy.c b/src/copy.c index b7d113fbea..067b1e7226 100644 --- a/src/copy.c +++ b/src/copy.c @@ -132,6 +132,9 @@ utimens_symlink (char const *file, struct timespec const *timespec) utimensat fails with ENOSYS. Ignore that. */ if (err && errno == ENOSYS) err = 0; +#else + (void) file; + (void) timespec; #endif return err; diff --git a/src/su.c b/src/su.c index ec50a3b5a0..25b883814f 100644 --- a/src/su.c +++ b/src/su.c @@ -53,16 +53,9 @@ #include #include -/* Hide any system prototype for getusershell. - This is necessary because some Cray systems have a conflicting - prototype (returning `int') in . */ -#define getusershell _getusershell_sys_proto_ - #include "system.h" #include "getpass.h" -#undef getusershell - #if HAVE_SYSLOG_H && HAVE_SYSLOG # include #else @@ -119,9 +112,6 @@ #define DEFAULT_USER "root" char *crypt (char const *key, char const *salt); -char *getusershell (void); -void endusershell (void); -void setusershell (void); extern char **environ;