[Asterisk-code-review] test_taskprocessor.c- unit_test_ubuntu_failure (...asterisk[16])

Christian Savinovich asteriskteam at digium.com
Wed Oct 9 16:02:30 CDT 2019


Christian Savinovich has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13035


Change subject: test_taskprocessor.c-  unit_test_ubuntu_failure
......................................................................

test_taskprocessor.c-  unit_test_ubuntu_failure

Fixes a failure in /main/taskprocesor unit test, only occurring in Ubuntu.
Newer versions of GCC require variable initialization.

Change-Id: I2994d8aab9307a8c2c7330584f287a27144a580c
---
M tests/test_taskprocessor.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/35/13035/1

diff --git a/tests/test_taskprocessor.c b/tests/test_taskprocessor.c
index 70cb556..dbef34e 100644
--- a/tests/test_taskprocessor.c
+++ b/tests/test_taskprocessor.c
@@ -182,7 +182,7 @@
 #define LOW_WATER_MARK 3
 #define HIGH_WATER_MARK 6
 	struct task_data *task_data[(TEST_DATA_ARRAY_SIZE + 1)] = { 0 };
-	int res;
+	int res = 0;
 	int i;
 	long queue_count;
 	unsigned int alert_level;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13035
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I2994d8aab9307a8c2c7330584f287a27144a580c
Gerrit-Change-Number: 13035
Gerrit-PatchSet: 1
Gerrit-Owner: Christian Savinovich <csavinovich at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191009/2c19a028/attachment.html>


More information about the asterisk-code-review mailing list