diff options
author | Hanoh Haim <hhaim@cisco.com> | 2015-12-15 15:39:58 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2015-12-15 15:39:58 +0200 |
commit | fb74954c33722dc25236137f76c8fa7a3aeafa2e (patch) | |
tree | 60ea1d8daac9bab312e7bf01179aee192a1eb08f /src/stateless/cp/trex_stream_vm.cpp | |
parent | e7ffce7b0317f9861264b17d003b22915177de33 (diff) |
fix ubuntu compiler warnings
Diffstat (limited to 'src/stateless/cp/trex_stream_vm.cpp')
-rw-r--r-- | src/stateless/cp/trex_stream_vm.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 ; } |