]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: fail on unknown attribute 42698/head
authorKefu Chai <kchai@redhat.com>
Fri, 6 Aug 2021 09:26:16 +0000 (17:26 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 6 Aug 2021 10:01:47 +0000 (18:01 +0800)
commit08179fd9f399b024acbe135e4eb6655126927f30
tree11dd3a4b95d540b157d650aa77a2729d84a3fc26
parent8b94e73e12976cdf464b49253639a1be27710555
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>
cmake/modules/CephChecks.cmake