diff options
author | mcheshkov <mcheshkov@yandex-team.ru> | 2022-02-10 16:46:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:15 +0300 |
commit | e9d19cec64684c9c1e6b0c98297e5b895cf904fe (patch) | |
tree | 2768b1223e96a8a0610a93d18425d9647c1123c8 /util/system/compiler.h | |
parent | 60040c91ffe701a84689b2c6310ff845e65cff42 (diff) | |
download | ydb-e9d19cec64684c9c1e6b0c98297e5b895cf904fe.tar.gz |
Restoring authorship annotation for <mcheshkov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/compiler.h')
-rw-r--r-- | util/system/compiler.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/util/system/compiler.h b/util/system/compiler.h index b373edcc466..3766182d829 100644 --- a/util/system/compiler.h +++ b/util/system/compiler.h @@ -476,44 +476,44 @@ _YandexAbort(); #define Y_PRAGMA_NO_UNUSED_FUNCTION #endif -/** - * @ def Y_PRAGMA_NO_UNUSED_PARAMETER - * - * Cross-compiler pragma to disable warnings about unused function parameters - * - * @see - * GCC: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html - * Clang: https://clang.llvm.org/docs/DiagnosticsReference.html#wunused-parameter - * MSVC: https://msdn.microsoft.com/en-us/library/26kb9fy0.aspx - * - * @code - * Y_PRAGMA_DIAGNOSTIC_PUSH - * Y_PRAGMA_NO_UNUSED_PARAMETER - * - * // some code which introduces a function with unused parameter, e.g.: - * - * void foo(int a) { - * // a is not referenced - * } - * - * int main() { - * foo(1); - * return 0; - * } - * - * Y_PRAGMA_DIAGNOSTIC_POP - * @endcode - */ +/** + * @ def Y_PRAGMA_NO_UNUSED_PARAMETER + * + * Cross-compiler pragma to disable warnings about unused function parameters + * + * @see + * GCC: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html + * Clang: https://clang.llvm.org/docs/DiagnosticsReference.html#wunused-parameter + * MSVC: https://msdn.microsoft.com/en-us/library/26kb9fy0.aspx + * + * @code + * Y_PRAGMA_DIAGNOSTIC_PUSH + * Y_PRAGMA_NO_UNUSED_PARAMETER + * + * // some code which introduces a function with unused parameter, e.g.: + * + * void foo(int a) { + * // a is not referenced + * } + * + * int main() { + * foo(1); + * return 0; + * } + * + * Y_PRAGMA_DIAGNOSTIC_POP + * @endcode + */ #if defined(__clang__) || defined(__GNUC__) #define Y_PRAGMA_NO_UNUSED_PARAMETER \ Y_PRAGMA("GCC diagnostic ignored \"-Wunused-parameter\"") -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) #define Y_PRAGMA_NO_UNUSED_PARAMETER \ Y_PRAGMA(warning(disable : 4100)) -#else +#else #define Y_PRAGMA_NO_UNUSED_PARAMETER -#endif - +#endif + /** * @def Y_PRAGMA_NO_DEPRECATED * @@ -540,7 +540,7 @@ _YandexAbort(); * Y_PRAGMA_DIAGNOSTIC_POP * @endcode */ -#if defined(__clang__) || defined(__GNUC__) +#if defined(__clang__) || defined(__GNUC__) #define Y_PRAGMA_NO_DEPRECATED \ Y_PRAGMA("GCC diagnostic ignored \"-Wdeprecated\"") #elif defined(_MSC_VER) |