From d47893607be294e16ecfc851600fc21bf0c0da9a Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Wed, 13 Oct 2021 15:22:45 +0300 Subject: [PATCH] test/scsi: Fix uninitialized variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dev_ut.c:667:30: error: ‘prev_lun’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 667 | struct spdk_scsi_lun *lun, *prev_lun; | ^~~~~~~~ gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 aarch64 Signed-off-by: Alexey Marchuk Change-Id: Id6608620ef6f18002ff7b7cc6de3e1361be762d0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9860 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris --- test/unit/lib/scsi/dev.c/dev_ut.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/lib/scsi/dev.c/dev_ut.c b/test/unit/lib/scsi/dev.c/dev_ut.c index 4bb8c7a1b..ce7cebd01 100644 --- a/test/unit/lib/scsi/dev.c/dev_ut.c +++ b/test/unit/lib/scsi/dev.c/dev_ut.c @@ -3,6 +3,7 @@ * * Copyright (c) Intel Corporation. * All rights reserved. + * Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions