remove the rest of gcc compiler warnings

pull/13/head
Jeff Becker 6 years ago
parent 53b4a94c75
commit ebfe820b7a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -64,6 +64,7 @@
"map": "cpp",
"vector": "cpp",
"new": "cpp",
"shared_mutex": "cpp"
"shared_mutex": "cpp",
"complex": "cpp"
}
}

@ -127,12 +127,13 @@ extern "C"
void
code_domain(char *&buffer, const std::string &domain) throw()
{
int start(0), end; // indexes
std::string::size_type start(0);
std::string::size_type end; // indexes
// llarp::LogInfo("domain [", domain, "]");
while((end = domain.find('.', start)) != std::string::npos)
{
*buffer++ = end - start; // label length octet
for(int i = start; i < end; i++)
for(std::string::size_type i = start; i < end; i++)
{
*buffer++ = domain[i]; // label octets
// llarp::LogInfo("Writing ", domain[i], " at ", i);

Loading…
Cancel
Save