ovs/_json.c:67:20: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ovs/_json.c:132:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] Signed-off-by: Timothy Redaelli <tredae...@redhat.com> --- python/ovs/_json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ovs/_json.c b/python/ovs/_json.c index 80bf9dea3..0b980038b 100644 --- a/python/ovs/_json.c +++ b/python/ovs/_json.c @@ -50,7 +50,7 @@ Parser_feed(json_ParserObject * self, PyObject * args) Py_ssize_t input_sz; PyObject *input; size_t rd; - char *input_str; + const char *input_str; if (self->_parser == NULL) { return NULL; @@ -111,7 +111,7 @@ json_to_python(struct json *json) return dict; } case JSON_ARRAY:{ - int i; + size_t i; PyObject *arr = PyList_New(json->array.n); if (arr == NULL) { -- 2.36.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev