forked from mirrors/nixpkgs
14 lines
591 B
Diff
14 lines
591 B
Diff
|
Nix compiles with _FORTIFY_SOURCE enabled. Fix error due to -Werror and an unused return value warning.
|
||
|
|
||
|
--- swift-corelibs-libdispatch/src/internal.h 2019-04-26 09:33:38.287289099 +0200
|
||
|
+++ swift-corelibs-libdispatch/src/internal.h 2019-04-26 15:31:10.485334128 +0200
|
||
|
@@ -1053,7 +1053,7 @@
|
||
|
#else
|
||
|
#define _dispatch_client_assert_fail(fmt, ...) do { \
|
||
|
char *_msg = NULL; \
|
||
|
- asprintf(&_msg, "%s" fmt, DISPATCH_ASSERTION_FAILED_MESSAGE, \
|
||
|
+ (void)asprintf(&_msg, "%s" fmt, DISPATCH_ASSERTION_FAILED_MESSAGE, \
|
||
|
##__VA_ARGS__); \
|
||
|
_dispatch_assert_crash(_msg); \
|
||
|
free(_msg); \
|