aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdutils
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-06-05 15:46:08 +0300
committerlevlam <levlam@telegram.org>2026-06-05 15:46:08 +0300
commitc19deb1c9fb6d1ecd37db8f4d8148666bbdbb79d (patch)
tree43f1d10ee84d03d917df61d211b997f713e59590 /tdutils
parentc5dfef637e27cc31d78811d7a255b84615582547 (diff)
Remove empty second parameter of static_assert.
Diffstat (limited to 'tdutils')
-rw-r--r--tdutils/td/utils/StealingQueue.h2
-rw-r--r--tdutils/td/utils/WaitFreeHashMap.h2
-rw-r--r--tdutils/td/utils/WaitFreeHashSet.h2
-rw-r--r--tdutils/td/utils/crypto.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/tdutils/td/utils/StealingQueue.h b/tdutils/td/utils/StealingQueue.h
index c923cb92e..cbbba4f99 100644
--- a/tdutils/td/utils/StealingQueue.h
+++ b/tdutils/td/utils/StealingQueue.h
@@ -17,7 +17,7 @@ namespace td {
template <class T, size_t N = 256>
class StealingQueue {
public:
- static_assert(N > 0 && (N & (N - 1)) == 0, "");
+ static_assert(N > 0 && (N & (N - 1)) == 0);
// tries to put a value
// returns if succeeded
diff --git a/tdutils/td/utils/WaitFreeHashMap.h b/tdutils/td/utils/WaitFreeHashMap.h
index 576564c88..6235a2ec7 100644
--- a/tdutils/td/utils/WaitFreeHashMap.h
+++ b/tdutils/td/utils/WaitFreeHashMap.h
@@ -17,7 +17,7 @@ namespace td {
template <class KeyT, class ValueT, class HashT = Hash<KeyT>, class EqT = std::equal_to<KeyT>>
class WaitFreeHashMap {
static constexpr size_t MAX_STORAGE_COUNT = 1 << 8;
- static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0, "");
+ static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0);
static constexpr uint32 DEFAULT_STORAGE_SIZE = 1 << 12;
FlatHashMap<KeyT, ValueT, HashT, EqT> default_map_;
diff --git a/tdutils/td/utils/WaitFreeHashSet.h b/tdutils/td/utils/WaitFreeHashSet.h
index 1c21329ff..f90ccbde7 100644
--- a/tdutils/td/utils/WaitFreeHashSet.h
+++ b/tdutils/td/utils/WaitFreeHashSet.h
@@ -17,7 +17,7 @@ namespace td {
template <class KeyT, class HashT = Hash<KeyT>, class EqT = std::equal_to<KeyT>>
class WaitFreeHashSet {
static constexpr size_t MAX_STORAGE_COUNT = 1 << 8;
- static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0, "");
+ static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0);
static constexpr uint32 DEFAULT_STORAGE_SIZE = 1 << 12;
FlatHashSet<KeyT, HashT, EqT> default_set_;
diff --git a/tdutils/td/utils/crypto.cpp b/tdutils/td/utils/crypto.cpp
index 01fc1ff7a..8b8f85a93 100644
--- a/tdutils/td/utils/crypto.cpp
+++ b/tdutils/td/utils/crypto.cpp
@@ -312,8 +312,8 @@ struct AesBlock {
#endif
}
};
-static_assert(sizeof(AesBlock) == 16, "");
-static_assert(sizeof(AesBlock) == AES_BLOCK_SIZE, "");
+static_assert(sizeof(AesBlock) == 16);
+static_assert(sizeof(AesBlock) == AES_BLOCK_SIZE);
class Evp {
public: