mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Silent compiler warning.
This commit is contained in:
parent
910ec4641e
commit
024683705d
@ -1,3 +1,10 @@
|
|||||||
|
2011-03-21 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
|
* iri.h: Declare `dummy_iri' as extern not static.
|
||||||
|
|
||||||
|
* main.c [!ENABLE_IRI]: Define `dummy_iri'.
|
||||||
|
(main) [!ENABLE_IRI]: Initialize `dummy_iri'.
|
||||||
|
|
||||||
2011-03-11 Giuseppe Scrivano <gscrivano@gnu.org>
|
2011-03-11 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
* ftp.c (getftp): Fix some memory leaks.
|
* ftp.c (getftp): Fix some memory leaks.
|
||||||
|
@ -54,7 +54,7 @@ void set_content_encoding (struct iri *i, char *charset);
|
|||||||
|
|
||||||
#else /* ENABLE_IRI */
|
#else /* ENABLE_IRI */
|
||||||
|
|
||||||
static struct iri dummy_iri;
|
extern struct iri dummy_iri;
|
||||||
|
|
||||||
#define parse_charset(str) NULL
|
#define parse_charset(str) NULL
|
||||||
#define find_locale() NULL
|
#define find_locale() NULL
|
||||||
|
@ -68,6 +68,10 @@ as that of the covered work. */
|
|||||||
# define PATH_SEPARATOR '/'
|
# define PATH_SEPARATOR '/'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef ENABLE_IRI
|
||||||
|
struct iri dummy_iri;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct options opt;
|
struct options opt;
|
||||||
|
|
||||||
/* defined in version.c */
|
/* defined in version.c */
|
||||||
@ -1181,6 +1185,7 @@ for details.\n\n"));
|
|||||||
opt.encoding_remote = NULL;
|
opt.encoding_remote = NULL;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
memset (&dummy_iri, 0, sizeof (dummy_iri));
|
||||||
if (opt.enable_iri || opt.locale || opt.encoding_remote)
|
if (opt.enable_iri || opt.locale || opt.encoding_remote)
|
||||||
{
|
{
|
||||||
/* sXXXav : be more specific... */
|
/* sXXXav : be more specific... */
|
||||||
|
Loading…
Reference in New Issue
Block a user