summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-07 06:40:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-07 06:41:09 +0200
commitb3364fc6cb2d7566cf5771a96711cd37b99cd9a3 (patch)
treee7102e4bb3500704e84c0c7434f66f0dfd42bdab /testsuites
parent089e68181e70aa96802f8ebe0acf6af73c02f5ae (diff)
downloadrtems-b3364fc6cb2d7566cf5771a96711cd37b99cd9a3.tar.bz2
libtests/block14: Fix warning
Fix warning: testsuites/libtests/block14/init.c:198:8: warning: 'sc' may be used uninitialized in this function [-Wmaybe-uninitialized] Update #3689.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/libtests/block14/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/libtests/block14/init.c b/testsuites/libtests/block14/init.c
index 13b7ab05ad..679606d481 100644
--- a/testsuites/libtests/block14/init.c
+++ b/testsuites/libtests/block14/init.c
@@ -180,7 +180,7 @@ static void test_actions(rtems_disk_device *dd)
for (i = 0; i < ACTION_COUNT; ++i) {
const test_action *action = &actions [i];
- rtems_status_code sc;
+ rtems_status_code sc = RTEMS_INVALID_ADDRESS;
rtems_bdbuf_buffer *bd;
rtems_blkdev_stats stats;