quiet compiler

This commit is contained in:
Andrey Mazo
2009-12-03 10:54:05 +03:00
parent aa7573e80a
commit 1ec9d83ba8
2 changed files with 3 additions and 1 deletions

View File

@@ -58,7 +58,8 @@ OmnetDataOutput::DoDispose()
inline bool isNumeric(const std::string& s) {
char *endp;
strtod(s.c_str(), &endp);
double unused = strtod(s.c_str(), &endp); // declared with warn_unused_result
unused = unused; // quiet compiler
return endp == s.c_str() + s.size();
}

View File

@@ -718,6 +718,7 @@ EmuNetDevice::ForwardUp (uint8_t *buf, uint32_t len)
default:
NS_FATAL_ERROR ("invalid encapsulation mode");
protocol = 0; /* quiet compiler */
}
PacketType packetType;