C: Added a trick to suppress compilation warnings about an unused

function actually called in a macro
This commit is contained in:
Celine Mercier
2018-10-17 13:13:23 +02:00
parent 8ce6dd6d1a
commit 2c2df4e098

View File

@ -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.
*