blob: df21399deb2e42eb689adbb08cba8f80ce28372a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001super-intel.c:5063:2: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
2 snprintf((char *) spare->sig, MAX_SIGNATURE_LENGTH,
3 ^
4cc1: all warnings being treated as errors
5make: *** [super-intel.o] Error 1
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8Upstream-Status: Pending
9
Brad Bishop316dfdd2018-06-25 12:45:53 -040010Index: mdadm-4.0/super-intel.c
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011===================================================================
Brad Bishop316dfdd2018-06-25 12:45:53 -040012--- mdadm-4.0.orig/super-intel.c
13+++ mdadm-4.0/super-intel.c
14@@ -5725,7 +5725,7 @@ static int write_super_imsm_spares(struc
15 spare->cache_size = mpb->cache_size;
16 spare->pwr_cycle_count = __cpu_to_le32(1);
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
18- snprintf((char *) spare->sig, MAX_SIGNATURE_LENGTH,
19+ (void)snprintf((char *) spare->sig, MAX_SIGNATURE_LENGTH,
20 MPB_SIGNATURE MPB_VERSION_RAID0);
21
22 for (d = super->disks; d; d = d->next) {