/* TODO: _format_attribute is currently ignored. */
#define _format_attribute(type, format_str, format_start)
+/* Hint that the annotated function is intentionally not used. This might be
+ * the case if the function contains only static assertions. */
+#define _unused_attribute __attribute__((unused))
+
/* Endianness definitions. Either CPU_IS_BIG_ENDIAN or CPU_IS_LITTLE_ENDIAN is
* set to 1. The other is set to 0. Note that newer gcc supports
* __BYTE_ORDER__ for easily determining the endianness; older gcc doesn't. In
#define REPARSE_DATA_MAX_SIZE (REPARSE_POINT_MAX_SIZE - REPARSE_DATA_OFFSET)
-static inline void
+static _unused_attribute void
check_reparse_buffer_disk(void)
{
STATIC_ASSERT(offsetof(struct reparse_buffer_disk, rpdata) == 8);
} _packed_attribute;
} _packed_attribute;
-static inline void
+static _unused_attribute void
wof_check_structs(void)
{
STATIC_ASSERT(sizeof(struct WimOverlay_dat_header) == 24);
#define DELTA_SOURCE_POWER_SHIFT 28
#define DELTA_SOURCE_RAW_OFFSET_MASK (((u32)1 << DELTA_SOURCE_POWER_SHIFT) - 1)
-static inline void
+static _unused_attribute void
check_that_powers_fit_in_bitfield(void)
{
STATIC_ASSERT(LZMS_NUM_DELTA_POWER_SYMS <= (1 << (31 - DELTA_SOURCE_POWER_SHIFT)));
1
};
-static inline void
+static _unused_attribute void
check_cost_shift(void)
{
/* lzms_bit_costs is hard-coded to the current COST_SHIFT. */