From: Giuseppe Scrivano Date: Mon, 21 Mar 2011 12:41:41 +0000 (+0100) Subject: Silent compiler warning. X-Git-Tag: v1.13~62 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=244b732e0a981cfc14daed00edfde7436c52b7c7 Silent compiler warning. --- 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)