! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
g_strcasecmp() is deprecated and breaks -Werror
Status:
RESOLVED: FIXED

Comments

Description Landry Breuil editbugs 2012-04-13 16:26:44 CEST
See bottom of http://buildbot.xfce.org/builders/xfwm4-openbsd/builds/363/steps/gmake/logs/stdio

According to http://developer.gnome.org/glib/2.32/glib-String-Utility-Functions.html#g-strcasecmp g_strcasecmp is deprecated since glib 2.2 and g_strncasecmp() should be used instead.

occurences :

./xfwm4/build/src/client.c:    if (strlen (hostname) && (display_info->hostname) && (g_strcasecmp (display_info->hostname, hostname)))
./xfwm4/build/src/transients.c:             !g_strcasecmp (c1->hostname, c2->hostname)));

g_strncasecmp(x,y,min(strlen(x),strlen(y))) should probably do the trick.

Bug #8688

Reported by:
Landry Breuil
Reported on: 2012-04-13
Last modified on: 2012-04-15

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information