diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-05-02 16:31:17 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-06 17:59:15 +0100 |
commit | 3a9092e9ca6b81dc4c8f4781787744d182edf03c (patch) | |
tree | 14bad19285f5b978d4868601c4d716352495a86c /meta/recipes-extended/mdadm/files | |
parent | 5f897ef09c2f17f6e665d18eb6f77426da30a114 (diff) | |
download | poky-3a9092e9ca6b81dc4c8f4781787744d182edf03c.tar.gz |
mdadm: Fix build on gcc 4.9
Fix
error: right-hand operand of comma expression has no effect
[-Werror=unused-value]
(From OE-Core rev: 9e1aac485175d29951f7ad23cd7515c8f7580271)
(From OE-Core rev: 58da3355522736b93bb6d164739c795068d2a1e8)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/files')
-rw-r--r-- | meta/recipes-extended/mdadm/files/gcc-4.9.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/gcc-4.9.patch b/meta/recipes-extended/mdadm/files/gcc-4.9.patch new file mode 100644 index 0000000000..54bf1d79ab --- /dev/null +++ b/meta/recipes-extended/mdadm/files/gcc-4.9.patch | |||
@@ -0,0 +1,22 @@ | |||
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) { | ||