summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2011-04-19 09:22:16 +0200
committerKarel Zak2011-04-19 09:22:16 +0200
commita2af4ceaae3108e60866ceb6ddd185f8ed373b58 (patch)
treed12b2cf917be950ff93b2ad5a74a9a0ac89cb0d2
parentmesg: add \n to usage() output (diff)
downloadkernel-qcow2-util-linux-a2af4ceaae3108e60866ceb6ddd185f8ed373b58.tar.gz
kernel-qcow2-util-linux-a2af4ceaae3108e60866ceb6ddd185f8ed373b58.tar.xz
kernel-qcow2-util-linux-a2af4ceaae3108e60866ceb6ddd185f8ed373b58.zip
getopt: fix gcc warning
getopt.c:80:13: warning: ‘set_initial_shell’ declared ‘static’ but never defined Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--getopt/getopt.c1
-rw-r--r--mount/mount.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/getopt/getopt.c b/getopt/getopt.c
index 2e7109d4d..b553c8b83 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 b786368f9..ba711498d 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;