From 244b732e0a981cfc14daed00edfde7436c52b7c7 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 21 Mar 2011 13:41:41 +0100 Subject: [PATCH] Silent compiler warning. --- src/ChangeLog | 4 +++- src/iri.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 01f51542..dbe962b1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,7 +1,9 @@ 2011-03-21 Giuseppe Scrivano - * iri.h: Declare `dummy_iri' as extern not static. + * iri.h (parse_charset) [!ENABLE_IRI]: Use the parameter to avoid a + compiler warning. + * iri.h: Declare `dummy_iri' as extern not static. * main.c [!ENABLE_IRI]: Define `dummy_iri'. (main) [!ENABLE_IRI]: Initialize `dummy_iri'. diff --git a/src/iri.h b/src/iri.h index ff97d449..e759e456 100644 --- a/src/iri.h +++ b/src/iri.h @@ -56,7 +56,7 @@ void set_content_encoding (struct iri *i, char *charset); extern struct iri dummy_iri; -#define parse_charset(str) NULL +#define parse_charset(str) (str, NULL) #define find_locale() NULL #define check_encoding_name(str) false #define locale_to_utf8(str) (str) -- 2.39.2