]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: fail on unknown attribute
authorKefu Chai <kchai@redhat.com>
Fri, 6 Aug 2021 09:26:16 +0000 (17:26 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 31 Aug 2022 12:36:53 +0000 (20:36 +0800)
commit55953eeeea0126d5230e6ac2d3e899e7dd4d8173
treeb83359d6d0dbced4e683303d2c6a6eb43ebe6698
parentc1d324d207661af146d915a1e239b5c6eb7eea63
cmake: fail on unknown attribute

on Clang, the option for detecting unknown attribute is
-Wunknown-attributes, so "-Wattributes -Werror" does not fail the test
when the C compiler is Clang.

in this change, we just turn all warnings into errors.
this should fail the test if the compiler does not understand
`__attribute__((__symver__ ...))`

Fixes: https://tracker.ceph.com/issues/40060
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 08179fd9f399b024acbe135e4eb6655126927f30)
cmake/modules/CephChecks.cmake