diff options
author | imarom <imarom@cisco.com> | 2015-11-09 10:40:11 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-11-09 10:56:11 +0200 |
commit | 67bcc46be09049d2ca65c0af2aa6a2fe0821eb04 (patch) | |
tree | f6fde81c1a6983a6cb28783871290ee4970b23b7 /src/rpc-server | |
parent | c75eb0b81a70ac39a5535553ad902b3a11385d48 (diff) |
DPDK target is now built with -Wall -Werror
(with few expections)
on both Fedora 18 and Ubunutu
Diffstat (limited to 'src/rpc-server')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_stream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp index d7138f7b..4fa0956d 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp @@ -127,7 +127,7 @@ TrexRpcCmdAddStream::_run(const Json::Value ¶ms, Json::Value &result) { TrexStream * TrexRpcCmdAddStream::allocate_new_stream(const Json::Value §ion, uint8_t port_id, uint32_t stream_id, Json::Value &result) { - TrexStream *stream; + TrexStream *stream = NULL; const Json::Value &mode = parse_object(section, "mode", result); std::string type = parse_string(mode, "type", result); @@ -200,9 +200,9 @@ TrexRpcCmdAddStream::parse_vm_instr_flow_var(const Json::Value &inst, TrexStream std::string min_value_str = parse_string(inst, "min_value", result); std::string max_value_str = parse_string(inst, "max_value", result); - uint64_t init_value; - uint64_t min_value; - uint64_t max_value; + uint64_t init_value = 0; + uint64_t min_value = 0; + uint64_t max_value = 0; try { init_value = str2num(init_value_str); |