[gnome-builder] Fix warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Fix warnings
- Date: Sat, 25 Apr 2015 07:50:58 +0000 (UTC)
commit ceed2d9d74a577afd08054a43996025dc0452451
Author: Patrick Griffis <tingping tingping se>
Date: Fri Apr 24 02:49:00 2015 -0400
Fix warnings
https://bugzilla.gnome.org/show_bug.cgi?id=748399
libide/editorconfig/libeditorconfig/ec_glob.c | 1 -
libide/ide-source-view.c | 1 -
libide/ide-vcs-uri.c | 1 -
3 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/libide/editorconfig/libeditorconfig/ec_glob.c b/libide/editorconfig/libeditorconfig/ec_glob.c
index 8fd4f32..684c90e 100644
--- a/libide/editorconfig/libeditorconfig/ec_glob.c
+++ b/libide/editorconfig/libeditorconfig/ec_glob.c
@@ -73,7 +73,6 @@ int ec_glob(const char *pattern, const char *string)
int * pcre_result;
size_t pcre_result_len;
char l_pattern[2 * PATTERN_MAX];
- int pattern_length = strlen(pattern);
_Bool are_brace_paired;
UT_array * nums; /* number ranges */
int ret = 0;
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index ba897bc..55df417 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -6963,7 +6963,6 @@ ide_source_view_set_count (IdeSourceView *self,
IdeSourceViewPrivate *priv = ide_source_view_get_instance_private (self);
g_return_if_fail (IDE_IS_SOURCE_VIEW (self));
- g_return_if_fail (count >= 0);
g_return_if_fail (count <= G_MAXINT);
if (count != priv->count)
diff --git a/libide/ide-vcs-uri.c b/libide/ide-vcs-uri.c
index 67772d2..d22b5e4 100644
--- a/libide/ide-vcs-uri.c
+++ b/libide/ide-vcs-uri.c
@@ -347,7 +347,6 @@ ide_vcs_uri_set_port (IdeVcsUri *self,
guint port)
{
g_return_if_fail (self);
- g_return_if_fail (port >= 0);
g_return_if_fail (port <= G_MAXINT16);
self->port = port;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]