[gimp] app: ifdef out functions that are unused
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: ifdef out functions that are unused
- Date: Fri, 9 Jan 2015 23:05:09 +0000 (UTC)
commit e2d2bdf65cbd45b31b8768cd7dd5246dce97bbc7
Author: Kristian Rietveld <kris loopnest org>
Date: Sat Jan 10 00:03:04 2015 +0100
app: ifdef out functions that are unused
Silences compiler warnings.
app/widgets/gimplanguagestore-parser.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimplanguagestore-parser.c b/app/widgets/gimplanguagestore-parser.c
index 3945af5..da49e97 100644
--- a/app/widgets/gimplanguagestore-parser.c
+++ b/app/widgets/gimplanguagestore-parser.c
@@ -57,6 +57,8 @@ typedef struct
static gboolean parse_iso_codes (GHashTable *base_lang_list,
GError **error);
+
+#ifdef HAVE_ISO_CODES
static void iso_codes_parser_init (void);
static void iso_codes_parser_start_element (GMarkupParseContext *context,
const gchar *element_name,
@@ -71,6 +73,7 @@ static void iso_codes_parser_end_element (GMarkupParseContext *context,
static void iso_codes_parser_start_unknown (IsoCodesParser *parser);
static void iso_codes_parser_end_unknown (IsoCodesParser *parser);
+#endif /* HAVE_ISO_CODES */
/*
* Language lists that we want to generate only once at program startup:
@@ -346,11 +349,12 @@ parse_iso_codes (GHashTable *base_lang_list,
gimp_xml_parser_free (xml_parser);
g_hash_table_unref (parser.base_lang_list);
-#endif
+#endif /* HAVE_ISO_CODES */
return success;
}
+#ifdef HAVE_ISO_CODES
static void
iso_codes_parser_init (void)
{
@@ -502,3 +506,4 @@ iso_codes_parser_end_unknown (IsoCodesParser *parser)
if (parser->unknown_depth == 0)
parser->state = parser->last_known_state;
}
+#endif /* HAVE_ISO_CODES */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]