Commit 0d6236f7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make pedantic compiler options generate less warnings

parent 0e4e72f1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@
#include <unixlib.h>
#endif

#include "homedir.h"

#ifdef CURLDEBUG
#include "../lib/memdebug.h"
#endif
+3 −0
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@ void ourWriteOut(CURL *curl, char *writeinfo)
                  fputs(stringp, stream);
                break;
              default:
                /* -Wunreachable-code wrongly complains on this */
                break;
              }
              break;