FP5: gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
diff --git a/gpt-utils/recovery-ufs-bsg.cpp b/gpt-utils/recovery-ufs-bsg.cpp
index 0a2cf11..4249aa6 100644
--- a/gpt-utils/recovery-ufs-bsg.cpp
+++ b/gpt-utils/recovery-ufs-bsg.cpp
@@ -100,7 +100,7 @@
enum bsg_ioctl_dir dir)
{
int ret;
- struct sg_io_v4 sg_io = {0};
+ struct sg_io_v4 sg_io{};
sg_io.guard = 'Q';
sg_io.protocol = BSG_PROTOCOL_SCSI;
@@ -155,8 +155,8 @@
__u8 func, __u8 opcode, __u8 idn,
__u8 index, __u8 sel)
{
- struct ufs_bsg_request req = {0};
- struct ufs_bsg_reply rsp = {0};
+ struct ufs_bsg_request req{};
+ struct ufs_bsg_reply rsp{};
enum bsg_ioctl_dir dir = BSG_IOCTL_DIR_FROM_DEV;
int ret = 0;
@@ -175,7 +175,7 @@
return ret;
}
-int32_t set_boot_lun(char *sg_dev,uint8_t lun_id)
+int32_t set_boot_lun(char *sg_dev __unused,uint8_t lun_id)
{
int32_t ret;
__u32 boot_lun_id = lun_id;