On 2/5/26 7:44 PM, Kevin Traynor wrote: > glibc 2.42 has const-preserving functions. > > This leads to warnings when there is a const argument and an assignment > to a non-const variable. Example with GCC 16.0.1 and glibc 2.43 on > Fedora Rawhide (F44). > > lib/daemon-unix.c: In function 'daemon_set_new_user': > lib/daemon-unix.c:984:17: > error: initialization discards 'const' qualifier from pointer target type > [-Werror=discarded-qualifiers] > 984 | char *pos = strchr(user_spec, ':'); > | ^~~~~~ > > Fix by using const variables. > > Signed-off-by: Kevin Traynor <[email protected]> > Acked-by: Ilya Maximets <[email protected]>
LGTM. Thanks! Best regards, Ilya Maximets. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
