aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-29 13:54:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-29 13:54:08 +0000
commit0d6236f7e10468f75d09796ba9640c9054ab1f04 (patch)
treefd4b5e265de3a87c520b8dedcc83dde24cf48e71 /src
parent0e4e72f193a83148df1377611ec7828b110b2715 (diff)
make pedantic compiler options generate less warnings
Diffstat (limited to 'src')
-rw-r--r--src/getpass.c6
-rw-r--r--src/homedir.c2
-rw-r--r--src/urlglob.c3
-rw-r--r--src/writeout.c1
4 files changed, 10 insertions, 2 deletions
diff --git a/src/getpass.c b/src/getpass.c
index 975ce1dde..4743f9a4f 100644
--- a/src/getpass.c
+++ b/src/getpass.c
@@ -36,6 +36,8 @@
#ifndef HAVE_GETPASS_R
+#include "getpass.h"
+
#ifndef WIN32
#ifdef VMS
#include <stdio.h>
@@ -101,9 +103,9 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
FILE *infp;
char infp_fclose = 0;
FILE *outfp;
- RETSIGTYPE (*sigint)();
+ RETSIGTYPE (*sigint)(int);
#ifdef SIGTSTP
- RETSIGTYPE (*sigtstp)();
+ RETSIGTYPE (*sigtstp)(int);
#endif
size_t bytes_read;
int infd;
diff --git a/src/homedir.c b/src/homedir.c
index 003d9f1aa..fedbdb8fc 100644
--- a/src/homedir.c
+++ b/src/homedir.c
@@ -40,6 +40,8 @@
#include <unixlib.h>
#endif
+#include "homedir.h"
+
#ifdef CURLDEBUG
#include "../lib/memdebug.h"
#endif
diff --git a/src/urlglob.c b/src/urlglob.c
index e1be1834f..7f0409bf0 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -136,8 +136,11 @@ static GlobCode glob_set(URLGlob *glob, char *pattern, int pos, int *amount)
++pos;
}
}
+ /* we never reach this point */
+#if 0
snprintf(globerrormsg, sizeof(globerrormsg), "malformatted pattern");
return GLOB_ERROR;
+#endif
}
static GlobCode glob_range(URLGlob *glob, char *pattern, int pos, int *amount)
diff --git a/src/writeout.c b/src/writeout.c
index 447e3935c..5d8d7428b 100644
--- a/src/writeout.c
+++ b/src/writeout.c
@@ -184,6 +184,7 @@ void ourWriteOut(CURL *curl, char *writeinfo)
fputs(stringp, stream);
break;
default:
+ /* -Wunreachable-code wrongly complains on this */
break;
}
break;