According to the C23 standard, used by default in GCC 15.x and other recent C compilers, strchr() and similar functions may return pointers to const chars, depending on their parameter types. This patch fixes a related warning caused by a missing qualifier.
To reproduce the problem, it's enough to run ./boot.sh && ./configure --enable-Werror && make with GCC 15.2.1 and GLIBC 2.43 Signed-off-by: Dmitry Mityugov <[email protected]> --- northd/aging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/northd/aging.c b/northd/aging.c index 62e25f6cb..58582a01e 100644 --- a/northd/aging.c +++ b/northd/aging.c @@ -97,7 +97,7 @@ compare_entries_by_prefix_length(const void *a, const void *b) static bool parse_threshold_entry(const char *str, struct threshold_entry *entry) { - char *colon_ptr; + const char *colon_ptr; unsigned int value; const char *threshold_str; -- 2.53.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
