Non significant changes according to clang's -Weverything, part 4 [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-06-03 23:48:36 +03:00
parent f5adbceed2
commit 7c60adbebb
3 changed files with 12 additions and 1 deletions

View File

@ -836,7 +836,7 @@ void CacheDictionary::update(
const auto now = std::chrono::system_clock::now();
/// Check which ids have not been found and require setting null_value
for (const auto id_found_pair : remaining_ids)
for (const auto & id_found_pair : remaining_ids)
{
if (id_found_pair.second)
{

View File

@ -24,8 +24,18 @@
#include <IO/ReadBufferFromMemory.h>
#include <IO/VarInt.h>
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdouble-promotion"
#endif
#include <double-conversion/double-conversion.h>
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#define DEFAULT_MAX_STRING_SIZE 0x00FFFFFFULL

View File

@ -6,6 +6,7 @@
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <Poco/Util/AbstractConfiguration.h>
#include <Common/Macros.h>
#include <Common/Exception.h>
#include <Common/setThreadName.h>