]> sjero.net Git - wget/commitdiff
Silent compiler warning.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 21 Mar 2011 12:41:41 +0000 (13:41 +0100)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 21 Mar 2011 12:41:41 +0000 (13:41 +0100)
src/ChangeLog
src/iri.h

index 01f51542fcbecec0f06d43ea9c6cc72a5d3c6735..dbe962b1f2eb1dc8146d3b60d58df46a992a15e4 100644 (file)
@@ -1,7 +1,9 @@
 2011-03-21  Giuseppe Scrivano  <gscrivano@gnu.org>
 
-       * 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'.
 
index ff97d449e402f6fe54fb4f17678dbc930a1c1fd6..e759e456329837c5a85392f8003b97c7c2117d26 100644 (file)
--- 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)