core/ssrf.h: add #pragma to avoid clang warning "-Wmissing-field-initializers"

Add a #pragma to avoid getting warning when a struct is only initialized
with one 0 and not one pr struct member

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-05-22 08:29:42 +02:00 committed by Dirk Hohndel
parent a243977026
commit 6e253fa04f

View file

@ -6,6 +6,10 @@
extern "C" {
#endif
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
#endif
#ifdef __cplusplus
}