! 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:28:16 CEST
+++ This bug was initially created as a clone of Bug #8688 +++

See bottom of http://buildbot.xfce.org/builders/exo-openbsd/builds/324/steps/gmake%20distcheck/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 :

./exo/build/exo/exo-icon-chooser-model.c:  return g_strcasecmp (((const ExoIconChooserModelItem *) item_a)->icon_name,

g_strncasecmp(x,y,min(strlen(x),strlen(y))) should probably do the trick.
Comment 1 Nick Schermer editbugs 2012-04-13 17:33:23 CEST
*** Bug 8647 has been marked as a duplicate of this bug. ***
Comment 2 Nick Schermer editbugs 2012-04-13 17:41:11 CEST
Fixed in fe90dfb.

Bug #8689

Reported by:
Landry Breuil
Reported on: 2012-04-13
Last modified on: 2012-04-13
Duplicates (1):
  • 8647 Git master fails to build with --enable-debug=full (g_strcasecmp deprecated)

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information