]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
getopt: fix gcc warning
authorKarel Zak <kzak@redhat.com>
Tue, 19 Apr 2011 07:22:16 +0000 (09:22 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Apr 2011 07:22:16 +0000 (09:22 +0200)
getopt.c:80:13: warning: ‘set_initial_shell’ declared ‘static’ but
never defined

Signed-off-by: Karel Zak <kzak@redhat.com>
getopt/getopt.c
mount/mount.c

index 2e7109d4da9dedd9e6eceb46c5768b0206d8793a..b553c8b834dace948770b3fe4d76b3217a6999a4 100644 (file)
@@ -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)
 {
index b786368f9263bc94acec74f38676b7c6f0b24966..ba711498d3e0afd11d8ab5c28122bfed5fe181ba 100644 (file)
@@ -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;