From: Henri Verbeet Subject: [PATCH 2/2] wrc: Avoid an unused function warning when HAVE_LIBGETTEXTPO is not defined. Message-Id: <1327954789-5158-2-git-send-email-hverbeet@codeweavers.com> Date: Mon, 30 Jan 2012 21:19:49 +0100 --- tools/wrc/po.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/wrc/po.c b/tools/wrc/po.c index 1d679ba..b4497c9 100644 --- a/tools/wrc/po.c +++ b/tools/wrc/po.c @@ -124,16 +124,6 @@ static char *get_message_context( char **msgid ) return context; } -static int string_has_context( const string_t *str ) -{ - char *id, *id_buffer, *context; - - id_buffer = id = convert_msgid_ascii( str, 1 ); - context = get_message_context( &id ); - free( id_buffer ); - return context != NULL; -} - static int control_has_title( const control_t *ctrl ) { if (!ctrl->title) return 0; @@ -819,6 +809,16 @@ static void add_po_menu( const resource_t *english, const resource_t *res ) add_po_menu_items( po, english_items, items, res->res.men->lvc.language ); } +static int string_has_context( const string_t *str ) +{ + char *id, *id_buffer, *context; + + id_buffer = id = convert_msgid_ascii( str, 1 ); + context = get_message_context( &id ); + free( id_buffer ); + return context != NULL; +} + static void add_pot_accel( po_file_t po, const resource_t *res ) { event_t *event = res->res.acc->events; -- 1.7.3.4