Ignore:
Timestamp:
Oct 13, 2015, 4:21:06 PM (9 years ago)
Author:
cfuguet
Message:

Fixing some warnings for new compiler's versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/dspin_local_crossbar/caba/source/src/dspin_local_crossbar.cpp

    r1001 r1019  
    279279        size_t              get_out[m_local_outputs+1]; // output ports -> input ports
    280280        bool                put_in[m_local_inputs+1];   // input ports  -> output ports
    281         internal_flit_t     data_in[m_local_inputs+1];  // input ports  -> output ports
     281        internal_flit_t*    data_in = new internal_flit_t[m_local_inputs+1];
    282282
    283283        // control signals for the input fifos
    284284        bool                fifo_in_write[m_local_inputs+1];
    285285        bool                fifo_in_read[m_local_inputs+1];
    286         internal_flit_t     fifo_in_wdata[m_local_inputs+1];
     286        internal_flit_t*    fifo_in_wdata = new internal_flit_t[m_local_inputs+1];
    287287
    288288        // control signals for the output fifos
    289289        bool                fifo_out_write[m_local_outputs+1];
    290290        bool                fifo_out_read[m_local_outputs+1];
    291         internal_flit_t     fifo_out_wdata[m_local_outputs+1];
     291        internal_flit_t*    fifo_out_wdata = new internal_flit_t[m_local_outputs+1];
    292292
    293293        // local-to-global and global-to-local hardware barrier enable signal
     
    551551                                 fifo_out_wdata[j]);
    552552        }
     553
     554        delete [] data_in;
     555        delete [] fifo_in_wdata;
     556        delete [] fifo_out_wdata;
    553557    } // end transition
    554558
Note: See TracChangeset for help on using the changeset viewer.