#At file:///home/frazer/bzr/mysql-5.1-telco-7.0/
2962 Frazer Clement 2009-08-05
Bug#46336 - fix compiler warnings
modified:
sql/hostname.cc
=== modified file 'sql/hostname.cc'
--- a/sql/hostname.cc 2009-08-05 14:37:58 +0000
+++ b/sql/hostname.cc 2009-08-05 17:56:06 +0000
@@ -99,6 +99,7 @@ static void get_ip_string(const struct s
ip4_int8[0], ip4_int8[1], ip4_int8[2], ip4_int8[3]);
DBUG_ASSERT(n < ip_str_size);
+ (void)n; // Remove compiler warning
break;
}
@@ -116,6 +117,7 @@ static void get_ip_string(const struct s
ntohs(ip6_int16[6]), ntohs(ip6_int16[7]));
DBUG_ASSERT(n < ip_str_size);
+ (void)n; // Remove compiler warning
break;
}
#endif /* HAVE_STRUCT_IN6_ADDR */
@@ -506,6 +508,7 @@ bool ip_to_hostname(struct sockaddr_stor
{
bool err_status= hostname_cache_get_key(ip, ip_string);
DBUG_ASSERT(!err_status);
+ (void)err_status; // Remove compiler warning
}
DBUG_PRINT("info", ("IP address: '%s'.", (const char *) ip_string));
@@ -680,6 +683,7 @@ bool ip_to_hostname(struct sockaddr_stor
{
bool err_status= hostname_cache_get_key(resolved_ip, resolved_ip_key);
DBUG_ASSERT(!err_status);
+ (void)err_status; // Remove compiler warning
}
DBUG_PRINT("info", (" - '%s'", (const char *) resolved_ip_key));
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-7.0 branch (frazer:2962) Bug#46336 | Frazer Clement | 5 Aug |