IOT-2539 Fix -Wswitch simulator 93/22893/2
authorGeorge Nash <george.nash@intel.com>
Tue, 17 Oct 2017 23:20:04 +0000 (16:20 -0700)
committerUze Choi <uzchoi@samsung.com>
Thu, 19 Oct 2017 06:42:20 +0000 (06:42 +0000)
commit0b9179b33648d73b993df4c63cb0dfb03d27a182
tree2c0bf41a5e56b2eccea08d271d8b4f63c8db4a6d
parenteb4bde7ac46b277ff812eeac738668895b0c0334
IOT-2539 Fix -Wswitch simulator

Fixed the switch warning in the simulator code.

In the request_model_builder the other posible values
for the switch are not expected if they occure print
an error and exit assert. Just in case it is a release
build an empty string is returned.

In simulatory_utils the un-handled case statments were
added to the switch.

Bug: https://jira.iotivity.org/browse/IOT-2539
Change-Id: Iebb79bd22410727c65c33ed73ec8704a1b8a33a4
Signed-off-by: George Nash <george.nash@intel.com>
service/simulator/src/common/request_model_builder.cpp
service/simulator/src/common/simulator_utils.cpp