mirror of
https://github.com/nasa/trick.git
synced 2025-06-17 06:38:27 +00:00
Some unit test warnings addressed. (#515)
* Removed purple warnings from unit test compilation. * "Fixed const corectness bug. Added more warning fixes." * Fixed warning issue. * Removed null checking and (char*) casting. * Changed sizeof parameter to variable from data structure.
This commit is contained in:
committed by
GitHub
parent
0b9fbe1762
commit
6184aa6cd9
@ -24,12 +24,8 @@ Trick::JSONVariableServer::JSONVariableServer() :
|
||||
}
|
||||
|
||||
Trick::JSONVariableServer::~JSONVariableServer() {
|
||||
if ( listen_dev.hostname != NULL ) {
|
||||
free(listen_dev.hostname) ;
|
||||
}
|
||||
if ( listen_dev.error_handler != NULL ) {
|
||||
free(listen_dev.error_handler) ;
|
||||
}
|
||||
}
|
||||
|
||||
const char * Trick::JSONVariableServer::get_hostname() {
|
||||
|
Reference in New Issue
Block a user