quiet compiler
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user