From b59e97175d63854127575e1cb505eb138cfac994 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 10 Jan 2018 21:35:04 +0300 Subject: [PATCH] Updated Style [#CLICKHOUSE-2]. --- docs/en/development/style.md | 6 +++--- docs/ru/development/style.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/development/style.md b/docs/en/development/style.md index 7f14247db15..6ae9438567e 100644 --- a/docs/en/development/style.md +++ b/docs/en/development/style.md @@ -452,7 +452,7 @@ } else /// If the calculations are already in progress, wait for results pool.wait(); - + if (exception) exception->rethrow(); ``` @@ -563,7 +563,7 @@ This is not recommended, but it is allowed. ```cpp using AggregateFunctionPtr = std::shared_ptr; - + /** Creates an aggregate function by name. */ class AggregateFunctionFactory @@ -691,7 +691,7 @@ This is not recommended, but it is allowed. The CPU instruction set is the minimum supported set among our servers. Currently, it is SSE 4.2. -6. Use `-Wall -Werror` compilation flags. +6. Use `-Wall -Wextra -Werror` compilation flags. 7. Use static linking with all libraries except those that are difficult to connect to statically (see the output of the 'ldd' command). diff --git a/docs/ru/development/style.md b/docs/ru/development/style.md index 7ae3eae714e..bd0fe652132 100644 --- a/docs/ru/development/style.md +++ b/docs/ru/development/style.md @@ -626,7 +626,7 @@ Набор инструкций - минимальный поддерживаемый среди наших серверов. Сейчас это - SSE4.2. -6. Используются флаги компиляции `-Wall -Werror`. +6. Используются флаги компиляции `-Wall -Wextra -Werror`. 7. Используется статическая линковка со всеми библиотеками кроме тех, которые трудно подключить статически (см. вывод команды ldd).