Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | super-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 | ^ |
| 4 | cc1: all warnings being treated as errors |
| 5 | make: *** [super-intel.o] Error 1 |
| 6 | |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | Upstream-Status: Pending |
| 9 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | Index: mdadm-4.0/super-intel.c |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | =================================================================== |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 12 | --- 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
| 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) { |