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:
Christopher LaChance
2017-11-29 15:35:16 -06:00
committed by GitHub
parent 0b9fbe1762
commit 6184aa6cd9
21 changed files with 60 additions and 66 deletions

View File

@ -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() {