From b27a5183da84f59629f47961437cf8c6bf8a91fe Mon Sep 17 00:00:00 2001 From: csavinovich <csavinovich@digium.com> Date: Wed, 9 Oct 2019 16:00:31 -0500 Subject: [PATCH] test_taskprocessor.c: Fix test failure on Ubuntu Fixes a failure in /main/taskprocesor unit test, only occurring in Ubuntu. Newer versions of GCC require variable initialization. Change-Id: I2994d8aab9307a8c2c7330584f287a27144a580c --- tests/test_taskprocessor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_taskprocessor.c b/tests/test_taskprocessor.c index 031151cf22..c9a40dfc0c 100644 --- a/tests/test_taskprocessor.c +++ b/tests/test_taskprocessor.c @@ -184,7 +184,7 @@ AST_TEST_DEFINE(subsystem_alert) #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; -- GitLab