diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-02-23 12:59:46 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-02-23 14:41:24 +0100 |
commit | 05cc1b87a952995c54ad99b8e9a0da9479bb56a5 (patch) | |
tree | 0cf544562d2760246b3a12daaeecd29d80cc4c02 | |
parent | e717ce555bffc9e8ea2dd981f733e55a2cde26ba (diff) | |
download | lvm2-05cc1b87a952995c54ad99b8e9a0da9479bb56a5.tar.gz |
gcc: cleanup Wunused-const-variable
Use #define instead, since we do not require actually buffer needs
to exists to eliminated new gcc6 warning:
clvm.h:53:19: warning: ‘CLVMD_SOCKNAME’ defined but not used
[-Wunused-const-variable]
-rw-r--r-- | daemons/clvmd/clvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/clvmd/clvm.h b/daemons/clvmd/clvm.h index 75cc29620..ae0a13aa4 100644 --- a/daemons/clvmd/clvm.h +++ b/daemons/clvmd/clvm.h @@ -50,7 +50,7 @@ struct clvm_header { #define CLVMD_FLAG_REMOTE 8 /* Do this on all nodes except for the local node */ /* Name of the local socket to communicate between lvm and clvmd */ -static const char CLVMD_SOCKNAME[]= DEFAULT_RUN_DIR "/clvmd.sock"; +#define CLVMD_SOCKNAME DEFAULT_RUN_DIR "/clvmd.sock" /* Internal commands & replies */ #define CLVMD_CMD_REPLY 1 |