mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Enable clang-tidy bugprone-assert-side-effect
Official docs: Finds assert() with side effect. The condition of assert() is evaluated only in debug builds so a condition with side effect can cause different behavior in debug / release builds.
This commit is contained in:
parent
9c51657821
commit
7d3913f350
@ -5,7 +5,6 @@ Checks: '*,
|
||||
|
||||
-android-*,
|
||||
|
||||
-bugprone-assert-side-effect,
|
||||
-bugprone-branch-clone,
|
||||
-bugprone-dynamic-static-initializers,
|
||||
-bugprone-easily-swappable-parameters,
|
||||
|
@ -161,7 +161,7 @@ namespace DB
|
||||
try
|
||||
{
|
||||
auto & unit = processing_units[current_unit_number];
|
||||
assert(unit.status = READY_TO_FORMAT);
|
||||
assert(unit.status == READY_TO_FORMAT);
|
||||
|
||||
/// We want to preallocate memory buffer (increase capacity)
|
||||
/// and put the pointer at the beginning of the buffer
|
||||
|
Loading…
Reference in New Issue
Block a user