aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-06-22 15:45:29 +0300
committerbabenko <babenko@yandex-team.com>2024-06-22 15:57:04 +0300
commitce7290ebbdeb010502ede0b26ea23dee94661841 (patch)
tree5b7eeef08b33c27280b2b02996934acd4b4a4fa0
parent7f84e69a2db386cca15e6fc1dafeb1395c516463 (diff)
downloadydb-ce7290ebbdeb010502ede0b26ea23dee94661841.tar.gz
Enable empty init list in YT_DEFINE_GLOBAL
e52d229afddf7db640499d3856bc55f2b7360bb4
-rw-r--r--library/cpp/yt/misc/global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/yt/misc/global.h b/library/cpp/yt/misc/global.h
index df831b50c3..c8bc2c03f0 100644
--- a/library/cpp/yt/misc/global.h
+++ b/library/cpp/yt/misc/global.h
@@ -8,6 +8,6 @@
#define YT_DEFINE_GLOBAL(type, name, ...) \
inline type& name() \
{ \
- static type result(__VA_ARGS__); \
+ static type result{__VA_ARGS__}; \
return result; \
}