[gnome-builder] build: fix more clang warnings



commit e0a560d5e20c688d5365bbe43e48aa83cd4fab5c
Author: Patrick Griffis <tingping tingping se>
Date:   Fri May 8 01:32:44 2015 -0400

    build: fix more clang warnings

 libide/git/ide-git-search-index.c |    5 +++++
 libide/ide-source-view.c          |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libide/git/ide-git-search-index.c b/libide/git/ide-git-search-index.c
index bd53af8..005fdc7 100644
--- a/libide/git/ide-git-search-index.c
+++ b/libide/git/ide-git-search-index.c
@@ -16,6 +16,11 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+/* for isascii in ctype */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
+
 #include <ctype.h>
 #include <fuzzy.h>
 #include <glib/gi18n.h>
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index dd26341..2077b0e 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -3599,7 +3599,7 @@ _strcasecmp_reversed (const void *aptr,
   const gchar * const *a = aptr;
   const gchar * const *b = bptr;
 
-  return strcasecmp (*a, *b);
+  return g_ascii_strcasecmp (*a, *b);
 }
 
 static int
@@ -3609,7 +3609,7 @@ _strcasecmp_normal (const void *aptr,
   const gchar * const *a = aptr;
   const gchar * const *b = bptr;
 
-  return strcasecmp (*b, *a);
+  return g_ascii_strcasecmp (*b, *a);
 }
 
 static int


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]