summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-07 10:00:21 -0700
committerPixel <pixel@nobis-crew.org>2008-10-07 10:00:21 -0700
commit58742cde51f692c8b95b92da16f4f1e2b2e7d006 (patch)
tree7436ec1ef53237f521e27a8c814c07036bf3c336
parent5c890b42ae70f211e40f7d1d5d877ecb62b511df (diff)
Fixing a few warnings.
-rw-r--r--include/generic.h2
-rw-r--r--lib/HttpServ.cc1
-rw-r--r--lib/MailClient.cc1
3 files changed, 2 insertions, 2 deletions
diff --git a/include/generic.h b/include/generic.h
index 7d681d3..0f98577 100644
--- a/include/generic.h
+++ b/include/generic.h
@@ -20,7 +20,7 @@
#ifndef __GENERIC_H__
#define __GENERIC_H__
-#ifdef _MSC_VER
+#ifdef _MSVC
// 4996 = 'foobar' was declared deprecated.
// 4244, 4267 = 'foobar': conversion from 'foo' to 'bar', possible loss of data.
#pragma warning(disable:4996 4244 4267)
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc
index b67f5f3..ec320bc 100644
--- a/lib/HttpServ.cc
+++ b/lib/HttpServ.cc
@@ -951,4 +951,5 @@ String HttpResponse::code_to_string() {
case HTTP_503_SERVICE_UNAVAILABLE:
return "Service Unavailable";
}
+ return "Unknown return code " + String(return_code);
}
diff --git a/lib/MailClient.cc b/lib/MailClient.cc
index 50e06c8..6ae1a73 100644
--- a/lib/MailClient.cc
+++ b/lib/MailClient.cc
@@ -147,7 +147,6 @@ String MailClient::getNext() {
}
int MailClient::Do() throw (GeneralException) {
- int code;
std::vector<String>::iterator i;
String n;