Browse Source

python: fix Clang's -Wmissing-prototypes warnings.

This is a temporary change until a PR fixing this on pybind11 side is
merged (and a new version released).
pull/2/head
Vladimír Vondruš 7 years ago
parent
commit
68e28685ff
  1. 3
      src/python/corrade/containers.cpp
  2. 3
      src/python/magnum/gl.cpp
  3. 3
      src/python/magnum/magnum.cpp
  4. 3
      src/python/magnum/meshtools.cpp
  5. 3
      src/python/magnum/platform/egl.cpp
  6. 3
      src/python/magnum/platform/glfw.cpp
  7. 3
      src/python/magnum/platform/glx.cpp
  8. 3
      src/python/magnum/platform/sdl2.cpp
  9. 3
      src/python/magnum/primitives.cpp
  10. 3
      src/python/magnum/scenegraph.cpp
  11. 3
      src/python/magnum/shaders.cpp
  12. 3
      src/python/magnum/trade.cpp

3
src/python/corrade/containers.cpp

@ -634,6 +634,9 @@ void containers(py::module& m) {
} }
#ifndef CORRADE_BUILD_STATIC #ifndef CORRADE_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_containers();
PYBIND11_MODULE(containers, m) { PYBIND11_MODULE(containers, m) {
corrade::containers(m); corrade::containers(m);
} }

3
src/python/magnum/gl.cpp

@ -475,6 +475,9 @@ void gl(py::module& m) {
} }
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_gl();
PYBIND11_MODULE(gl, m) { PYBIND11_MODULE(gl, m) {
magnum::gl(m); magnum::gl(m);
} }

3
src/python/magnum/magnum.cpp

@ -214,6 +214,9 @@ void magnum(py::module& m) {
}} }}
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit__magnum();
PYBIND11_MODULE(_magnum, m) { PYBIND11_MODULE(_magnum, m) {
/* We need ArrayView for images */ /* We need ArrayView for images */
py::module::import("corrade.containers"); py::module::import("corrade.containers");

3
src/python/magnum/meshtools.cpp

@ -62,6 +62,9 @@ void meshtools(py::module& m) {
} }
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_meshtools();
PYBIND11_MODULE(meshtools, m) { PYBIND11_MODULE(meshtools, m) {
magnum::meshtools(m); magnum::meshtools(m);
} }

3
src/python/magnum/platform/egl.cpp

@ -58,6 +58,9 @@ void egl(py::module& m) {
}} }}
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_egl();
PYBIND11_MODULE(egl, m) { PYBIND11_MODULE(egl, m) {
magnum::platform::egl(m); magnum::platform::egl(m);
} }

3
src/python/magnum/platform/glfw.cpp

@ -110,6 +110,9 @@ void glfw(py::module& m) {
}} }}
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_glfw();
PYBIND11_MODULE(glfw, m) { PYBIND11_MODULE(glfw, m) {
magnum::platform::glfw(m); magnum::platform::glfw(m);
} }

3
src/python/magnum/platform/glx.cpp

@ -58,6 +58,9 @@ void glx(py::module& m) {
}} }}
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_glx();
PYBIND11_MODULE(glx, m) { PYBIND11_MODULE(glx, m) {
magnum::platform::glx(m); magnum::platform::glx(m);
} }

3
src/python/magnum/platform/sdl2.cpp

@ -118,6 +118,9 @@ void sdl2(py::module& m) {
}} }}
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_sdl2();
PYBIND11_MODULE(sdl2, m) { PYBIND11_MODULE(sdl2, m) {
magnum::platform::sdl2(m); magnum::platform::sdl2(m);
} }

3
src/python/magnum/primitives.cpp

@ -58,6 +58,9 @@ void primitives(py::module& m) {
} }
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_primitives();
PYBIND11_MODULE(primitives, m) { PYBIND11_MODULE(primitives, m) {
magnum::primitives(m); magnum::primitives(m);
} }

3
src/python/magnum/scenegraph.cpp

@ -176,6 +176,9 @@ void scenegraph(py::module& m) {
} }
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_scenegraph();
PYBIND11_MODULE(scenegraph, m) { PYBIND11_MODULE(scenegraph, m) {
magnum::scenegraph(m); magnum::scenegraph(m);
} }

3
src/python/magnum/shaders.cpp

@ -153,6 +153,9 @@ void shaders(py::module& m) {
} }
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_shaders();
PYBIND11_MODULE(shaders, m) { PYBIND11_MODULE(shaders, m) {
magnum::shaders(m); magnum::shaders(m);
} }

3
src/python/magnum/trade.cpp

@ -53,6 +53,9 @@ void trade(py::module& m) {
} }
#ifndef MAGNUM_BUILD_STATIC #ifndef MAGNUM_BUILD_STATIC
/* TODO: remove declaration when https://github.com/pybind/pybind11/pull/1863
is released */
extern "C" PyObject* PyInit_trade();
PYBIND11_MODULE(trade, m) { PYBIND11_MODULE(trade, m) {
magnum::trade(m); magnum::trade(m);
} }

Loading…
Cancel
Save