mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:33:33 +03:00
tool_getparam: fix compiler warning when !HAVE_WRITABLE_ARGV
Follow-up to 2ed0e1f70e
Closes #10286
This commit is contained in:
parent
12157aa924
commit
e6b72644c2
1 changed files with 5 additions and 4 deletions
|
|
@ -689,10 +689,6 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
ParameterError err;
|
||||
bool toggle = TRUE; /* how to switch boolean options, on or off. Controlled
|
||||
by using --OPTION or --no-OPTION */
|
||||
#ifdef HAVE_WRITABLE_ARGV
|
||||
argv_item_t clearthis = NULL;
|
||||
#endif
|
||||
|
||||
static const char *redir_protos[] = {
|
||||
"http",
|
||||
"https",
|
||||
|
|
@ -700,6 +696,11 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
"ftps",
|
||||
NULL
|
||||
};
|
||||
#ifdef HAVE_WRITABLE_ARGV
|
||||
argv_item_t clearthis = NULL;
|
||||
#else
|
||||
(void)cleararg;
|
||||
#endif
|
||||
|
||||
*usedarg = FALSE; /* default is that we don't use the arg */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue