genxml: remove NDEBUG_UNUSED
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26797>
This commit is contained in:

committed by
Marge Bot

parent
41b2ed65e2
commit
472f49ef43
@@ -149,14 +149,8 @@ util_bitpack_ufixed_nonzero(float v, uint32_t start, uint32_t end,
|
||||
#define __intel_field_functions
|
||||
#endif
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define NDEBUG_UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define NDEBUG_UNUSED
|
||||
#endif
|
||||
|
||||
static inline __attribute__((always_inline)) uint64_t
|
||||
__gen_offset(uint64_t v, NDEBUG_UNUSED uint32_t start, NDEBUG_UNUSED uint32_t end)
|
||||
__gen_offset(uint64_t v, UNUSED uint32_t start, UNUSED uint32_t end)
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
@@ -13,12 +13,6 @@
|
||||
#define __intel_field_functions
|
||||
#endif
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define NDEBUG_UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define NDEBUG_UNUSED
|
||||
#endif
|
||||
|
||||
#ifndef __gen_address_type
|
||||
#error #define __gen_address_type before including this file
|
||||
#endif
|
||||
@@ -28,7 +22,7 @@
|
||||
#endif
|
||||
|
||||
static inline __attribute__((always_inline)) uint64_t
|
||||
__gen_offset(uint64_t v, NDEBUG_UNUSED uint32_t start, NDEBUG_UNUSED uint32_t end)
|
||||
__gen_offset(uint64_t v, ASSERTED uint32_t start, ASSERTED uint32_t end)
|
||||
{
|
||||
__gen_validate_value(v);
|
||||
#ifndef NDEBUG
|
||||
|
@@ -51,8 +51,6 @@ pack_header = """%(license)s
|
||||
#include "genX_cl_helpers.h"
|
||||
#endif
|
||||
|
||||
#undef NDEBUG_UNUSED
|
||||
|
||||
"""
|
||||
|
||||
def num_from_str(num_str):
|
||||
|
Reference in New Issue
Block a user