]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: add -Wno-unknown-pragmas to CMAKE_C_FLAGS
authorKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 07:55:15 +0000 (15:55 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 07:55:17 +0000 (15:55 +0800)
commit6e8f3b40df5f08238faa5c7a8b1fe3f188d60bcb
treecb41e4d1517047940fc234c6a88bdd6944b2d949
parentf0b7d36a92a137cfddaa252324d1d7021771636b
cmake: add -Wno-unknown-pragmas to CMAKE_C_FLAGS

this silences warnings like:

warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]

and recent clang (3.9 and 4.0) do not complain at seeing
so we only pass this this param to gcc.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt