C: Added a trick to suppress compilation warnings about an unused
function actually called in a macro
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user