diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-12-26 09:29:00 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2020-01-02 05:46:04 +0000 |
commit | 51c4002030da6b1a11f6e8f48bf117084b1da34d (patch) | |
tree | 9f53cbcee843be41f39bc7e50f2d0db576e6dd62 /xlators/mgmt/glusterd/src/glusterd-ganesha.c | |
parent | e40d0c399333e1ef62ff104b5cd35d8a5baa75f4 (diff) |
Remove some compiler warnings when not compiling gNFS
As a follow up to https://review.gluster.org/#/c/glusterfs/+/23799/
When compiling without gNFS, there were some 'unused' warnings by
the compiler. This patch fixes them.
Change-Id: I621562261f53950e821a450e0e7da304d00ae557
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-ganesha.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-ganesha.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c index 0c18cc45b07..6207a21dab2 100644 --- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c +++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c @@ -779,7 +779,6 @@ int start_ganesha(char **op_errstr) { int ret = -1; - dict_t *vol_opts = NULL; glusterd_volinfo_t *volinfo = NULL; glusterd_conf_t *priv = NULL; runner_t runner = { @@ -791,11 +790,10 @@ start_ganesha(char **op_errstr) cds_list_for_each_entry(volinfo, &priv->volumes, vol_list) { - vol_opts = volinfo->dict; #ifdef BUILD_GNFS /* Gluster-nfs has to be disabled across the trusted pool */ /* before attempting to start nfs-ganesha */ - ret = dict_set_str(vol_opts, NFS_DISABLE_MAP_KEY, "on"); + ret = dict_set_str_sizen(volinfo->dict, NFS_DISABLE_MAP_KEY, "on"); if (ret) goto out; #endif |