From 79bf795e1a739c16658c3623b4677f04333e374e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 19 Nov 2013 10:39:46 +0100 Subject: [PATCH] lib/package_unpack.c: make clang stfu due to -Wmissing-field-initializers. --- lib/package_unpack.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/package_unpack.c b/lib/package_unpack.c index 1e8c9de3..da86874f 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -39,6 +39,14 @@ #include "xbps_api_impl.h" +/* + * XXX WTF clearly clang should stfu and accept struct initializers + * struct foo foo = {0}; + */ +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wmissing-field-initializers" +#endif + static int set_extract_flags(uid_t euid) {