aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraneporada <aneporada@ydb.tech>2023-02-22 07:48:25 +0300
committeraneporada <aneporada@ydb.tech>2023-02-22 07:48:25 +0300
commit66b69f707921d03a1bf8118c29326ffec2dbed4b (patch)
tree816a332975123e5398377f0521db40fc86b2a04a
parent7500e5e927a68c22a2b499b1793da833d22baecd (diff)
downloadydb-66b69f707921d03a1bf8118c29326ffec2dbed4b.tar.gz
[refactoring] Fix annoying clang-tidy warning
-rw-r--r--ydb/library/yql/public/udf/udf_allocator.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/ydb/library/yql/public/udf/udf_allocator.h b/ydb/library/yql/public/udf/udf_allocator.h
index 48a94ba6a1..832bde962e 100644
--- a/ydb/library/yql/public/udf/udf_allocator.h
+++ b/ydb/library/yql/public/udf/udf_allocator.h
@@ -8,14 +8,8 @@
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 8)
extern "C" void* UdfAllocateWithSize(ui64 size);
extern "C" void UdfFreeWithSize(const void* mem, ui64 size);
-#ifdef __clang__
-[[deprecated]]
-#endif
-extern "C" void* UdfAllocate(ui64 size);
-#ifdef __clang__
-[[deprecated]]
-#endif
-extern "C" void UdfFree(const void* mem);
+extern "C" [[deprecated("Use UdfAllocateWithSize() instead")]] void* UdfAllocate(ui64 size);
+extern "C" [[deprecated("Use UdfFreeWithSize() instead")]] void UdfFree(const void* mem);
#else
extern "C" void* UdfAllocate(ui64 size);
extern "C" void UdfFree(const void* mem);