[pytango] 184/483: avoid warning on python 2.6

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 143b65565d5e12ef661dd39f8b4022a29f272454
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Wed Jan 16 14:09:17 2013 +0000

    avoid warning on python 2.6
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@21908 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/boost/cpp/pyutils.cpp | 6 ++----
 src/boost/cpp/pyutils.h   | 4 ++--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/boost/cpp/pyutils.cpp b/src/boost/cpp/pyutils.cpp
index ee1012e..d112e53 100644
--- a/src/boost/cpp/pyutils.cpp
+++ b/src/boost/cpp/pyutils.cpp
@@ -123,8 +123,7 @@ void is_method_defined(PyObject *obj, const std::string &method_name,
 
 #ifdef PYCAPSULE_OLD
 
-static int
-PyCapsule_SetName(PyObject *capsule, const char *unused)
+int PyCapsule_SetName(PyObject *capsule, const char *unused)
 {
     unused = unused;
     PyErr_SetString(PyExc_NotImplementedError,
@@ -132,8 +131,7 @@ PyCapsule_SetName(PyObject *capsule, const char *unused)
     return 1;
 }
 
-static void *
-PyCapsule_Import(const char *name, int no_block)
+void *PyCapsule_Import(const char *name, int no_block)
 {
     PyObject *object = NULL;
     void *return_value = NULL;
diff --git a/src/boost/cpp/pyutils.h b/src/boost/cpp/pyutils.h
index 6f7a979..21e090f 100644
--- a/src/boost/cpp/pyutils.h
+++ b/src/boost/cpp/pyutils.h
@@ -153,7 +153,7 @@ inline PyObject *PyImport_ImportModule_(const std::string &name)
  */
 #define PyCapsule_GetName(capsule) NULL
 
-static int PyCapsule_SetName(PyObject *capsule, const char *unused);
+int PyCapsule_SetName(PyObject *capsule, const char *unused);
 
 #define PyCapsule_GetContext(capsule) \
     __PyCapsule_GetField(capsule, descr)
@@ -162,7 +162,7 @@ static int PyCapsule_SetName(PyObject *capsule, const char *unused);
     __PyCapsule_SetField(capsule, descr, context)
 
 
-static void * PyCapsule_Import(const char *name, int no_block);
+void * PyCapsule_Import(const char *name, int no_block);
 
 #endif /* #if PY_VERSION_HEX < 0x02070000 */
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list