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 | |
| 10 | Index: mdadm-3.3/super-intel.c |
| 11 | =================================================================== |
| 12 | --- mdadm-3.3.orig/super-intel.c 2014-05-02 15:08:21.154319651 -0700 |
| 13 | +++ mdadm-3.3/super-intel.c 2014-05-02 15:09:31.470985794 -0700 |
| 14 | @@ -5060,7 +5060,7 @@ |
| 15 | spare->cache_size = mpb->cache_size, |
| 16 | spare->pwr_cycle_count = __cpu_to_le32(1), |
| 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) { |