r12001@catbus: nickm | 2007-02-28 15:24:12 -0500

Try to build without warnings on mingw with verbose warnings on.  First attempt.


svn:r9688
This commit is contained in:
Nick Mathewson
2007-02-28 20:24:27 +00:00
parent 3008c3b768
commit f38240435a
5 changed files with 33 additions and 9 deletions
+8 -5
View File
@@ -713,6 +713,9 @@ switch_id(const char *user, const char *group)
}
return 0;
#else
(void)user;
(void)group;
#endif
log_warn(LD_CONFIG,
@@ -878,7 +881,7 @@ get_uname(void)
unsigned int leftover_mask;
const char *plat = NULL;
static struct {
int major; int minor; const char *version;
unsigned major; unsigned minor; const char *version;
} win_version_table[] = {
{ 6, 0, "Windows \"Longhorn\"" },
{ 5, 2, "Windows Server 2003" },
@@ -889,7 +892,7 @@ get_uname(void)
{ 4, 10, "Windows 98" },
/* { 4, 0, "Windows 95" } */
{ 3, 51, "Windows NT 3.51" },
{ -1, -1, NULL }
{ 0, 0, NULL }
};
#ifdef VER_SUITE_BACKOFFICE
static struct {
@@ -924,7 +927,7 @@ get_uname(void)
else
plat = "Windows 95";
} else {
for (i=0; win_version_table[i].major>=0; ++i) {
for (i=0; win_version_table[i].major>0; ++i) {
if (win_version_table[i].major == info.dwMajorVersion &&
win_version_table[i].minor == info.dwMinorVersion) {
plat = win_version_table[i].version;
@@ -1027,8 +1030,8 @@ spawn_func(void (*func)(void *), void *data)
{
#if defined(USE_WIN32_THREADS)
int rv;
rv = _beginthread(func, 0, data);
if (rv == (unsigned long) -1)
rv = (int)_beginthread(func, 0, data);
if (rv == (int)-1)
return -1;
return 0;
#elif defined(USE_PTHREADS)
+1 -1
View File
@@ -1567,7 +1567,7 @@ crypto_seed_rng(void)
if (!provider_set) {
if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL,
CRYPT_VERIFYCONTEXT)) {
if (GetLastError() != NTE_BAD_KEYSET) {
if ((unsigned long)GetLastError() != (unsigned long)NTE_BAD_KEYSET) {
log_warn(LD_CRYPTO, "Can't get CryptoAPI provider [1]");
return rand_poll_status ? 0 : -1;
}
+1
View File
@@ -2070,6 +2070,7 @@ start_daemon(void)
void
finish_daemon(const char *cp)
{
(void)cp;
}
#endif