diff options
author | jan Iversen <jani@libreoffice.org> | 2018-05-22 08:29:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-24 08:34:14 -0700 |
commit | 6e253fa04f81be6fb26ff59cd5be39c85bfe3d19 (patch) | |
tree | b0c9bf93f1c3651ed3d1411f86a5ecae1ebec23c | |
parent | a243977026703e536db2f33099cb34d10aa8a783 (diff) | |
download | subsurface-6e253fa04f81be6fb26ff59cd5be39c85bfe3d19.tar.gz |
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>
-rw-r--r-- | core/ssrf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ssrf.h b/core/ssrf.h index a07436d80..7f65f2dc5 100644 --- a/core/ssrf.h +++ b/core/ssrf.h @@ -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 } |