clean up unused usages (#421)
* clean up unused usages Signed-off-by: SchrodingerZhu <i@zhuyi.fan> * remove names for arg pack Signed-off-by: SchrodingerZhu <i@zhuyi.fan> * fix namespace in setup.h Signed-off-by: SchrodingerZhu <i@zhuyi.fan> * format Signed-off-by: SchrodingerZhu <i@zhuyi.fan> * set UNUSED as fast path Signed-off-by: SchrodingerZhu <i@zhuyi.fan>
This commit is contained in:
committed by
GitHub
parent
f731bc169b
commit
8e5514bd5a
@@ -90,8 +90,6 @@
|
||||
# define __has_builtin(x) 0
|
||||
#endif
|
||||
|
||||
#define UNUSED(x) ((void)(x))
|
||||
|
||||
namespace snmalloc
|
||||
{
|
||||
// Forwards reference so that the platform can define how to handle errors.
|
||||
@@ -168,4 +166,7 @@ namespace snmalloc
|
||||
#else
|
||||
static constexpr bool CHECK_CLIENT = false;
|
||||
#endif
|
||||
template<typename... Args>
|
||||
SNMALLOC_FAST_PATH_INLINE void UNUSED(Args&&...)
|
||||
{}
|
||||
} // namespace snmalloc
|
||||
|
||||
Reference in New Issue
Block a user