Fixing warnings on clang [#METR-2807].

This commit is contained in:
Alexey Milovidov 2016-03-07 07:43:14 +03:00
parent 8f7425a906
commit a75b6ca3dd
2 changed files with 3 additions and 4 deletions

View File

@ -37,7 +37,7 @@ protected:
int fd;
off_t pos_in_file; /// Какому сдвигу в файле соответствует working_buffer.end().
bool nextImpl()
bool nextImpl() override
{
size_t bytes_read = 0;
while (!bytes_read)
@ -86,7 +86,7 @@ protected:
}
/// Имя или описание файла
virtual std::string getFileName() const override
std::string getFileName() const override
{
return "(fd = " + toString(fd) + ")";
}

View File

@ -692,8 +692,7 @@ MergeTreeData::PerShardDataParts MergeTreeDataMerger::reshardPartition(
MergeTreeSharder sharder(data, job);
Block block;
while (block = merged_stream->read())
while (Block block = merged_stream->read())
{
abortIfRequested();