Remove various assert(constant) calls

These cause warnings from static checkers, and seem to lead to spurious
GCC7 -Wmaybe-uninitialized.
This commit is contained in:
John Hood
2017-08-07 05:03:18 +02:00
parent 93daa5ac3b
commit a40b67691a
7 changed files with 4 additions and 14 deletions
-3
View File
@@ -286,7 +286,6 @@ Connection::Connection( const char *desired_ip, const char *desired_port ) /* se
throw; /* this time it's fatal */
}
assert( false );
throw NetworkException( "Could not bind", errno );
}
@@ -352,7 +351,6 @@ bool Connection::try_bind( const char *addr, int port_low, int port_high )
}
}
assert( false );
return false;
}
@@ -458,7 +456,6 @@ string Connection::recv( void )
prune_sockets();
return payload;
}
assert( false );
return "";
}