diff --git a/src/obitypes.h b/src/obitypes.h index c6e9402..8d72880 100644 --- a/src/obitypes.h +++ b/src/obitypes.h @@ -29,6 +29,7 @@ #define OBIQual_int_NA (NULL) /**< NA value for the type OBI_QUAL if the quality is in integer format */ #define OBITuple_NA (NULL) /**< NA value for tuples of any type */ + /** * @brief enum for the boolean OBIType. */ @@ -93,6 +94,16 @@ static double float_NA(void) } +/** + * @brief Trick to suppress compilation warnings about unused + * float_NA function actually called in macro. + */ +static inline void suppress_warning(void) { + (void)float_NA; + (void)suppress_warning; +} + + /** * @brief Returns the memory size in bytes of an OBIType. *