diff --git a/include/ck_tile/core/utility/static_counter.hpp b/include/ck_tile/core/utility/static_counter.hpp index 84af3dd52f..4828e2e010 100644 --- a/include/ck_tile/core/utility/static_counter.hpp +++ b/include/ck_tile/core/utility/static_counter.hpp @@ -102,11 +102,14 @@ struct static_counter_uniq_; } #define MAKE_SC() \ - ck_tile::static_counter> {} -#define MAKE_SC_WITH(start_, step_) \ - ck_tile::static_counter, start_, step_> {} -#define NEXT_SC(c_) c_.next<__COUNTER__>() -#define NEXT_SCI(c_, static_i_) c_.next<__COUNTER__ + static_i_>() + __extension__ ck_tile::static_counter> {} +#define MAKE_SC_WITH(start_, step_) \ + __extension__ ck_tile:: \ + static_counter, start_, step_> \ + { \ + } +#define NEXT_SC(c_) __extension__ c_.next<__COUNTER__>() +#define NEXT_SCI(c_, static_i_) __extension__ c_.next<__COUNTER__ + static_i_>() // Usage: // constexpr auto c = MAKE_SC() diff --git a/profiler/src/profiler_operation_registry.hpp b/profiler/src/profiler_operation_registry.hpp index 276b7b38dc..7e6d22d4ce 100644 --- a/profiler/src/profiler_operation_registry.hpp +++ b/profiler/src/profiler_operation_registry.hpp @@ -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)