summaryrefslogtreecommitdiff
path: root/lib/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-02-05 20:12:23 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-02-07 01:11:07 +0100
commit8f6d7d6cbf6c1443533e02dc7349c796785f90b7 (patch)
tree8e1727b17c89caef591580cdc8e027546feda989 /lib/param
parenta05a9101b69250bde49e365fef74af08497ab6fd (diff)
downloadsamba-8f6d7d6cbf6c1443533e02dc7349c796785f90b7.tar.gz
samba-8f6d7d6cbf6c1443533e02dc7349c796785f90b7.tar.bz2
samba-8f6d7d6cbf6c1443533e02dc7349c796785f90b7.zip
loadparm: handle P_SEP in switches (silences warning with clang).
Diffstat (limited to 'lib/param')
-rw-r--r--lib/param/loadparm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index ef1e7d9e47..44a33295d5 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -2566,6 +2566,9 @@ static bool set_variable(TALLOC_CTX *mem_ctx, int parmnum, void *parm_ptr,
return false;
}
break;
+
+ case P_SEP:
+ break;
}
mark_non_default:
@@ -2968,6 +2971,8 @@ static bool is_default(struct loadparm_service *sDefault, int i)
case P_ENUM:
return parm_table[i].def.ivalue ==
*(int *)def_ptr;
+ case P_SEP:
+ break;
}
return false;
}