fix some compiler warnings

This commit is contained in:
Arvid Norberg
2012-06-25 14:17:51 +00:00
parent e51e953cb9
commit 57769bab11
10 changed files with 24 additions and 23 deletions

View File

@@ -293,8 +293,8 @@ namespace libtorrent
if (ptr == 0 || expect2 == 0 || strcmp(expect2, ptr)) { handle_error(invalid_response, h); return; }
int result = 0;
char const* message = 0;
float version = 3.0f;
// char const* message = 0;
// float version = 3.0f;
for(;;)
{
@@ -324,11 +324,11 @@ namespace libtorrent
}
else if (strcmp("MESSAGE", name) == 0)
{
message = ptr;
// message = ptr;
}
else if (strcmp("VERSION", name) == 0)
{
version = float(atof(ptr));
// version = float(atof(ptr));
}
else if (strcmp("VALUE", name) == 0)
{