From ff0d3860d4eb742607cdb7857dc823f6de1105d2 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 12 Apr 2021 23:02:16 +0300 Subject: [PATCH] Fix typos + minor improvement #22314 --- src/Functions/TargetSpecific.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Functions/TargetSpecific.h b/src/Functions/TargetSpecific.h index 8de6a3dbec4..e6d3fe6d665 100644 --- a/src/Functions/TargetSpecific.h +++ b/src/Functions/TargetSpecific.h @@ -36,15 +36,15 @@ * int func() { * #if USE_MULTITARGET_CODE * if (isArchSupported(TargetArch::AVX2)) - * return TargetSpecifc::AVX2::funcImpl(); + * return TargetSpecific::AVX2::funcImpl(); * #endif - * return TargetSpecifc::Default::funcImpl(); + * return TargetSpecific::Default::funcImpl(); * } * * Sometimes code may benefit from compiling with different options. * For these purposes use DECLARE_MULTITARGET_CODE macros. It will create a copy * of the code for every supported target and compile it with different options. - * These copies are available via TargetSpecifc namespaces described above. + * These copies are available via TargetSpecific namespaces described above. * * Inside every TargetSpecific namespace there is a constexpr variable BuildArch, * which indicates the target platform for current code. @@ -106,7 +106,7 @@ String toString(TargetArch arch); /* Clang shows warning when there aren't any objects to apply pragma. * To prevent this warning we define this function inside every macros with pragmas. */ -# define DUMMY_FUNCTION_DEFINITION void __dummy_function_definition(); +# define DUMMY_FUNCTION_DEFINITION [[maybe_unused]] void __dummy_function_definition(); #else # define BEGIN_AVX512F_SPECIFIC_CODE \ _Pragma("GCC push_options") \