Skip to content

Commit 304a8b1

Browse files
silabs-borislrzr
authored andcommitted
uic: zpc: UIC-3570: Fix test compilation errors in Release mode
Initialize value to avoid warning in tests in ZPC (cherry picked from commit 426be59937680cac7de483d08ea012609cc4d686) Forwarded: #11 Signed-off-by: Philippe Coval <[email protected]>
1 parent ca06856 commit 304a8b1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

applications/zpc/components/zwave_command_classes/test/zwave_command_class_humidity_control_setpoint_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@ void helper_report_setpoint(enum set_bytes bytes_count, bool happy_case)
308308
info.remote.endpoint_id = endpoint_id;
309309
info.local.is_multicast = false;
310310

311-
attribute_store_node_t value_node;
311+
attribute_store_node_t value_node = 0;
312312

313-
humidity_control_setpoint_precision_t precision;
314-
humidity_control_setpoint_scale_t scale;
315-
humidity_control_setpoint_value_t value;
313+
humidity_control_setpoint_precision_t precision = 0;
314+
humidity_control_setpoint_scale_t scale = 0;
315+
humidity_control_setpoint_value_t value = 0;
316316

317317
humidity_control_setpoint_size_t size = bytes_count;
318318

applications/zpc/components/zwave_command_classes/test/zwave_command_class_thermostat_fan_mode_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ void helper_fan_mode_report(zwave_cc_version_t version,
363363
TEST_ASSERT_EQUAL(SL_STATUS_NOT_SUPPORTED,
364364
handler.control_handler(&info, NULL, 0));
365365

366-
thermostat_fan_mode_t fan_mode;
367-
thermostat_fan_mode_off_flag_t off_flag;
368-
thermostat_fan_supported_modes_t current_supported_bitmask;
366+
thermostat_fan_mode_t fan_mode = 0;
367+
thermostat_fan_mode_off_flag_t off_flag = 0;
368+
thermostat_fan_supported_modes_t current_supported_bitmask = 0;
369369

370370
switch (version) {
371371
case 1:

applications/zpc/components/zwave_command_classes/test/zwave_command_class_thermostat_setpoint_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ attribute_store_node_t set_default_capabilities(thermostat_setpoint_type_t type)
668668

669669
attribute_store_type_t get_ucl_type(thermostat_setpoint_type_t setpoint_type)
670670
{
671-
attribute_store_type_t ucl_type;
671+
attribute_store_type_t ucl_type = 0;
672672
switch (setpoint_type) {
673673
case SETPOINT_TYPE_HEATING:
674674
ucl_type = DOTDOT_ATTRIBUTE_ID_THERMOSTAT_OCCUPIED_HEATING_SETPOINT;

0 commit comments

Comments
 (0)