From fb74954c33722dc25236137f76c8fa7a3aeafa2e Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Tue, 15 Dec 2015 15:39:58 +0200 Subject: fix ubuntu compiler warnings --- src/stateless/cp/trex_stream_vm.cpp | 8 +++++++- src/stateless/cp/trex_stream_vm.h | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/stateless/cp') diff --git a/src/stateless/cp/trex_stream_vm.cpp b/src/stateless/cp/trex_stream_vm.cpp index 188be2d8..310a4369 100644 --- a/src/stateless/cp/trex_stream_vm.cpp +++ b/src/stateless/cp/trex_stream_vm.cpp @@ -337,7 +337,7 @@ void StreamVm::build_program(){ if (lpMan->m_size_bytes == 1 ){ - uint8_t op; + uint8_t op=StreamDPVmInstructions::ditINC8; if ( lpMan->m_op == StreamVmInstructionFlowMan::FLOW_VAR_OP_INC ){ op = StreamDPVmInstructions::ditINC8 ; @@ -362,6 +362,8 @@ void StreamVm::build_program(){ if (lpMan->m_size_bytes == 2 ){ uint8_t op; + op = StreamDPVmInstructions::ditINC16; + if ( lpMan->m_op == StreamVmInstructionFlowMan::FLOW_VAR_OP_INC ){ op = StreamDPVmInstructions::ditINC16 ; } @@ -385,6 +387,8 @@ void StreamVm::build_program(){ if (lpMan->m_size_bytes == 4 ){ uint8_t op; + op = StreamDPVmInstructions::ditINC32; + if ( lpMan->m_op == StreamVmInstructionFlowMan::FLOW_VAR_OP_INC ){ op = StreamDPVmInstructions::ditINC32 ; } @@ -408,6 +412,8 @@ void StreamVm::build_program(){ if (lpMan->m_size_bytes == 8 ){ uint8_t op; + op = StreamDPVmInstructions::ditINC64; + if ( lpMan->m_op == StreamVmInstructionFlowMan::FLOW_VAR_OP_INC ){ op = StreamDPVmInstructions::ditINC64 ; } diff --git a/src/stateless/cp/trex_stream_vm.h b/src/stateless/cp/trex_stream_vm.h index 2bf72829..0484693f 100644 --- a/src/stateless/cp/trex_stream_vm.h +++ b/src/stateless/cp/trex_stream_vm.h @@ -27,6 +27,9 @@ limitations under the License. #include #include #include +#include "pal_utl.h" +#include "mbuf.h" + -- cgit 1.2.3-korg