]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/ceph_fs.h: guard `#define CEPH_SETATTR_*` with #ifndef 10265/head
authorKefu Chai <kchai@redhat.com>
Tue, 12 Jul 2016 16:31:52 +0000 (00:31 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Jul 2016 02:37:30 +0000 (10:37 +0800)
commit5f3f33750d7e1642f209f85df81486439e1e0079
tree2153f388925513b9cd37d5a24a50c6e122bc2876
parentec8d3bed937ecc8413e730166fd0fd367a0139ac
include/ceph_fs.h: guard `#define CEPH_SETATTR_*` with #ifndef

this silences the warnings like:

```
from
/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-11.0.0-513-gfe98b0b/src/java/native/libcephfs_jni.cc:33:
warning:
/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-11.0.0-513-gfe98b0b/src/include/ceph_fs.h:373:0:
"CEPH_SETATTR_MODE" redefined [enabled by default]
^
In file included from
/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-11.0.0-513-gfe98b0b/src/java/native/libcephfs_jni.cc:32:0:
/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-11.0.0-513-gfe98b0b/src/include/cephfs/libcephfs.h:106:0:
note: this is the location of the previous definition
^
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/ceph_fs.h