]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind: silence gcc warnings about '-Wstrict-prototypes'
authorKefu Chai <kchai@redhat.com>
Tue, 12 Apr 2016 03:49:27 +0000 (11:49 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Apr 2016 13:36:11 +0000 (21:36 +0800)
commit48be25426009cf128aa2be511e93b8d45da8958d
tree29bf07f6480d355f95f6ad5cc8a01fa92153fcb1
parent515cd487de1f2d896757cba0cafcccaae2561779
pybind: silence gcc warnings about '-Wstrict-prototypes'

this silences following warning

```
warning: cc1plus: command line option ‘-Wstrict-prototypes’ is valid for
C/ObjC but not for C++ [enabled by default]
```

* distutils pass "-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes" to
  compiler by default if OPT environment variable is not set. so we opt to
  remove '-Wstrict-prototypes' as we are using c++ as the language of the
  generated bindinging.
* also use "env" to pass the environment variables to avoid unnecessary
  quote added by distutils, which just breaks the generated CLI command
  line.

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