Fix compilation errors with clang22. (#3164)

* resolve compilation issue with clang22

* add __extension__ for __COUNTER__ usage in ck_tile
This commit is contained in:
Illia Silin
2025-11-05 15:42:22 -08:00
committed by GitHub
parent b8527a9236
commit 4533aa6dba
2 changed files with 10 additions and 7 deletions

View File

@@ -74,6 +74,6 @@ class ProfilerOperationRegistry final
#define PP_CONCAT(x, y) PP_CONCAT_IMPL(x, y)
#define PP_CONCAT_IMPL(x, y) x##y
#define REGISTER_PROFILER_OPERATION(name, description, operation) \
static const bool PP_CONCAT(operation_registration_result_, __COUNTER__) = \
#define REGISTER_PROFILER_OPERATION(name, description, operation) \
__extension__ static const bool PP_CONCAT(operation_registration_result_, __COUNTER__) = \
::ProfilerOperationRegistry::GetInstance().Add(name, description, operation)