mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
Fix compilers warnings. Ref #300
This commit is contained in:
parent
919a8e2068
commit
753d821329
@ -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) {
|
||||
|
@ -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) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user