- Add efivar-0.21-gcc6.diff to fix strict-aliasing issue. - Build with -Wno-nonnull as efivar tests nonnull args for zero and that breaks with its use of -Werror. OBS-URL: https://build.opensuse.org/request/show/358734 OBS-URL: https://build.opensuse.org/package/show/Base:System/efivar?expand=0&rev=13
20 lines
545 B
Diff
20 lines
545 B
Diff
--- src/util.h.orig 2016-02-10 15:29:15.245050330 +0000
|
|
+++ src/util.h 2016-02-10 15:29:18.957092775 +0000
|
|
@@ -175,14 +175,14 @@
|
|
} \
|
|
} \
|
|
if (_rc >= 0) { \
|
|
- uint8_t *_buf2 = alloca(_bufsize); \
|
|
+ void *_buf2 = alloca(_bufsize); \
|
|
_saved_errno = errno; \
|
|
if (_buf2) { \
|
|
memcpy(_buf2, _buf, _bufsize); \
|
|
_rc = _bufsize; \
|
|
} \
|
|
free(_buf); \
|
|
- *((uint8_t **)buf) = _buf2; \
|
|
+ *((void **)buf) = _buf2; \
|
|
errno = _saved_errno; \
|
|
} \
|
|
_rc; \
|