Fix compilers warnings. Ref #300

This commit is contained in:
John Penn 2016-09-02 17:01:07 -05:00
parent 919a8e2068
commit 753d821329
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#include "trick/MemoryManager.hh"
static char * nil_units = "1";
static const char * nil_units = "1";
// MEMBER FUNCTION
ATTRIBUTES* Trick::MemoryManager::make_reference_attr( ALLOC_INFO* alloc_info) {

View File

@ -34,7 +34,7 @@ int Trick::VariableServerThread::copy_sim_data() {
// if there's a pointer somewhere in the address path, follow it in case pointer changed
if ( curr_var->ref->pointer_present == 1 ) {
curr_var->address = follow_address_path(curr_var->ref) ;
if ( (curr_var->address == NULL) ) {
if (curr_var->address == NULL) {
std::string save_name(curr_var->ref->reference) ;
free(curr_var->ref) ;
curr_var->ref = make_error_ref(save_name) ;