Fix a lot of MinGW/GCC warnings

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6168 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2011-11-09 18:12:57 +00:00
parent e918dd8a27
commit cf4e5cf132
31 changed files with 92 additions and 87 deletions

View file

@ -216,7 +216,7 @@ int MulDiv64(int nNumber, __int64 nNumerator, __int64 nDenominator)
static __int64 g_file_size;
static DWORD g_dwLastTick = 0;
void progress_callback(char *msg, __int64 read_bytes)
void progress_callback(const char *msg, __int64 read_bytes)
{
// flicker reduction by A. Schiffler
DWORD dwLastTick = g_dwLastTick;
@ -234,7 +234,7 @@ void progress_callback(char *msg, __int64 read_bytes)
}
}
extern char *_strstr(char *i, char *s);
extern char *_strstr(char *i, const char *s);
#define strstr _strstr
extern "C"
@ -255,7 +255,7 @@ __declspec(dllexport) void download (HWND parent,
int manualproxy=0;
int translation_version;
char *error=NULL;
const char *error=NULL;
// translation version 2 & 1
static char szDownloading[1024]; // "Downloading %s"