From: Karel Zak Date: Tue, 19 Apr 2011 07:22:16 +0000 (+0200) Subject: getopt: fix gcc warning X-Git-Tag: v2.20-rc1~327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2af4ceaae3108e60866ceb6ddd185f8ed373b58;p=thirdparty%2Futil-linux.git getopt: fix gcc warning getopt.c:80:13: warning: ‘set_initial_shell’ declared ‘static’ but never defined Signed-off-by: Karel Zak --- diff --git a/getopt/getopt.c b/getopt/getopt.c index 2e7109d4da..b553c8b834 100644 --- a/getopt/getopt.c +++ b/getopt/getopt.c @@ -77,7 +77,6 @@ static void add_long_options(char *options); static void add_longopt(const char *name,int has_arg); static void print_help(void); static void set_shell(const char *new_shell); -static void set_initial_shell(void); static void *our_malloc(size_t size) { diff --git a/mount/mount.c b/mount/mount.c index b786368f92..ba711498d3 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -1385,7 +1385,6 @@ prepare_mtab_entry(const char *spec, const char *node, const char *type, static void update_mtab_entry(int flags) { unsigned long fl; - struct libmnt_lock *lc; if (!mtab_update) return;