Commit 2c2df4e0 authored by Celine Mercier's avatar Celine Mercier

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

function actually called in a macro
parent 8ce6dd6d
......@@ -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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment