mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ldb: silence some clang warnings in picky developer mode
Avoid const in casting since it doesn't increase code safety in this case and causes clang to generate const-qual warning. Also initialize a pointer to NULL to silence clang uninitialized variable warning. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
1d74e4f6f3
commit
3cca62a2ac
@ -510,10 +510,10 @@ static PyObject *py_ldb_dn_set_extended_component(PyLdbDnObject *self, PyObject
|
||||
{
|
||||
char *name;
|
||||
int err;
|
||||
uint8_t *value;
|
||||
uint8_t *value = NULL;
|
||||
Py_ssize_t size = 0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "sz#", &name, (const char**)&value, &size))
|
||||
if (!PyArg_ParseTuple(args, "sz#", &name, (char **)&value, &size))
|
||||
return NULL;
|
||||
|
||||
if (value == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user