mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
make pedantic compiler options generate less warnings
This commit is contained in:
parent
0e4e72f193
commit
0d6236f7e1
@ -36,6 +36,8 @@
|
|||||||
|
|
||||||
#ifndef HAVE_GETPASS_R
|
#ifndef HAVE_GETPASS_R
|
||||||
|
|
||||||
|
#include "getpass.h"
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#ifdef VMS
|
#ifdef VMS
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -101,9 +103,9 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
|||||||
FILE *infp;
|
FILE *infp;
|
||||||
char infp_fclose = 0;
|
char infp_fclose = 0;
|
||||||
FILE *outfp;
|
FILE *outfp;
|
||||||
RETSIGTYPE (*sigint)();
|
RETSIGTYPE (*sigint)(int);
|
||||||
#ifdef SIGTSTP
|
#ifdef SIGTSTP
|
||||||
RETSIGTYPE (*sigtstp)();
|
RETSIGTYPE (*sigtstp)(int);
|
||||||
#endif
|
#endif
|
||||||
size_t bytes_read;
|
size_t bytes_read;
|
||||||
int infd;
|
int infd;
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
#include <unixlib.h>
|
#include <unixlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "homedir.h"
|
||||||
|
|
||||||
#ifdef CURLDEBUG
|
#ifdef CURLDEBUG
|
||||||
#include "../lib/memdebug.h"
|
#include "../lib/memdebug.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -136,8 +136,11 @@ static GlobCode glob_set(URLGlob *glob, char *pattern, int pos, int *amount)
|
|||||||
++pos;
|
++pos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* we never reach this point */
|
||||||
|
#if 0
|
||||||
snprintf(globerrormsg, sizeof(globerrormsg), "malformatted pattern");
|
snprintf(globerrormsg, sizeof(globerrormsg), "malformatted pattern");
|
||||||
return GLOB_ERROR;
|
return GLOB_ERROR;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static GlobCode glob_range(URLGlob *glob, char *pattern, int pos, int *amount)
|
static GlobCode glob_range(URLGlob *glob, char *pattern, int pos, int *amount)
|
||||||
|
@ -184,6 +184,7 @@ void ourWriteOut(CURL *curl, char *writeinfo)
|
|||||||
fputs(stringp, stream);
|
fputs(stringp, stream);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
/* -Wunreachable-code wrongly complains on this */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user