[Tarantool-patches] [PATCH v2 02/10] cmake: ignore warnings on alignof() and offsetof()

Kirill Yukhin kyukhin at tarantool.org
Fri May 29 09:24:45 MSK 2020


Hello,

On 28 май 01:32, Vladislav Shpilevoy wrote:
> --- a/cmake/compiler.cmake
> +++ b/cmake/compiler.cmake
> @@ -276,11 +276,12 @@ macro(enable_tnt_compile_flags)
>          add_compile_flags("C;CXX" "-Wno-format-truncation")
>      endif()
>  
> -    if (CMAKE_COMPILER_IS_GNUCXX)
> +    if (CMAKE_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_GNUCXX)
>          # G++ bug. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31488
>          add_compile_flags("CXX"
>              "-Wno-invalid-offsetof"
>          )

So, you're disabling the warning for clang? According to comment it
was disabled for GCC because of bug in it. Update comment? Enable for
clang?

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list