__attribute__((format(type, format_str, format_start)))
#endif
-/* 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()
* evaluates to 1. The other evaluates 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 _unused_attribute void
+static void __attribute__((unused))
check_reparse_buffer_disk(void)
{
STATIC_ASSERT(offsetof(struct reparse_buffer_disk, rpdata) == 8);
} __attribute__((packed));
} __attribute__((packed));
-static _unused_attribute void
+static void __attribute__((unused))
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 _unused_attribute void
+static void __attribute__((unused))
check_that_powers_fit_in_bitfield(void)
{
STATIC_ASSERT(LZMS_NUM_DELTA_POWER_SYMS <= (1 << (31 - DELTA_SOURCE_POWER_SHIFT)));
1
};
-static _unused_attribute void
+static void __attribute__((unused))
check_cost_shift(void)
{
/* lzms_bit_costs is hard-coded to the current COST_SHIFT. */
}
#ifdef _WIN32
-static _unused_attribute void
+static void __attribute__((unused))
check_sizeof_time_t(void)
{
/* Windows builds should always be using 64-bit time_t now. */