[gnome-builder] build: fix more clang warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: fix more clang warnings
- Date: Mon, 15 Sep 2014 23:23:24 +0000 (UTC)
commit 95b1c3f89a9edc06c376e2c813bbc78d2ddeaa50
Author: Christian Hergert <christian hergert me>
Date: Mon Sep 15 16:23:19 2014 -0700
build: fix more clang warnings
src/snippets/gb-source-snippet-context.c | 4 ++--
src/snippets/gb-source-snippet-parser.c | 4 ++--
src/tabs/gb-multi-notebook.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/snippets/gb-source-snippet-context.c b/src/snippets/gb-source-snippet-context.c
index c62ca7b..959619d 100644
--- a/src/snippets/gb-source-snippet-context.c
+++ b/src/snippets/gb-source-snippet-context.c
@@ -449,7 +449,7 @@ gb_source_snippet_context_expand (GbSourceSnippetContext *context,
gboolean is_dynamic;
GString *str;
gchar key[12];
- gint n;
+ glong n;
gint i;
g_return_val_if_fail (GB_IS_SOURCE_SNIPPET_CONTEXT (context), NULL);
@@ -484,7 +484,7 @@ gb_source_snippet_context_expand (GbSourceSnippetContext *context,
if (((n == LONG_MIN) || (n == LONG_MAX)) && errno == ERANGE)
break;
input--;
- g_snprintf (key, sizeof key, "%d", n);
+ g_snprintf (key, sizeof key, "%ld", n);
key[sizeof key - 1] = '\0';
expand = gb_source_snippet_context_get_variable (context, key);
if (expand)
diff --git a/src/snippets/gb-source-snippet-parser.c b/src/snippets/gb-source-snippet-parser.c
index c422515..690e1fe 100644
--- a/src/snippets/gb-source-snippet-parser.c
+++ b/src/snippets/gb-source-snippet-parser.c
@@ -158,7 +158,7 @@ gb_source_snippet_parser_do_part_named (GbSourceSnippetParser *parser,
static gboolean
parse_variable (const gchar *line,
- gint *n,
+ glong *n,
gchar **inner,
const gchar **endptr,
gchar **name)
@@ -264,7 +264,7 @@ gb_source_snippet_parser_do_part (GbSourceSnippetParser *parser,
gchar *str;
gchar *inner;
gchar *name;
- gint n;
+ glong n;
g_assert (line);
g_assert (*line == '\t');
diff --git a/src/tabs/gb-multi-notebook.c b/src/tabs/gb-multi-notebook.c
index cf2416d..39da7c5 100644
--- a/src/tabs/gb-multi-notebook.c
+++ b/src/tabs/gb-multi-notebook.c
@@ -840,7 +840,7 @@ on_drag_data_received (GbNotebook *notebook,
g_assert (priv->drag_drop_target);
g_assert (GB_IS_NOTEBOOK (priv->drag_drop_target));
- tabptr = (GbTab * *) gtk_selection_data_get_data (data);
+ tabptr = (GbTab **)(gpointer)gtk_selection_data_get_data (data);
g_assert (tabptr);
tab = *tabptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]