mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
6e253fa04f
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>
22 lines
383 B
C
22 lines
383 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef SSRF_H
|
|
#define SSRF_H
|
|
|
|
#ifdef __cplusplus
|
|
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
|
|
}
|
|
#else
|
|
|
|
// Macro to be used for silencing unused parameters
|
|
#define UNUSED(x) (void)x
|
|
#endif
|
|
|
|
#endif // SSRF_H
|