You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2020/01/20 21:22:31 UTC
[uima-uimacpp] branch master updated: UIMA-6172 remove more warnings
This is an automated email from the ASF dual-hosted git repository.
eae pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/uima-uimacpp.git
The following commit(s) were added to refs/heads/master by this push:
new 06ccd6b UIMA-6172 remove more warnings
06ccd6b is described below
commit 06ccd6bbf2f0cc68df8285864edbf744661462e9
Author: Eddie Epstein <ea...@us.ibm.com>
AuthorDate: Mon Jan 20 16:21:10 2020 -0500
UIMA-6172 remove more warnings
---
scriptators/python/pythonnator.cpp | 5 +++--
src/utils/deployCppService.hpp | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/scriptators/python/pythonnator.cpp b/scriptators/python/pythonnator.cpp
index 3da1a40..3dd0bf9 100644
--- a/scriptators/python/pythonnator.cpp
+++ b/scriptators/python/pythonnator.cpp
@@ -83,7 +83,8 @@ public:
// and contained in the type system are evaluated.
TyErrorId initialize(AnnotatorContext &ac) {
- PyObject *main_module, *user_module;
+ // PyObject *main_module, *user_module;
+ PyObject *user_module;
PyObject *dict;
swig_type_info *ac_type;
#ifdef PATH_MAX
@@ -158,7 +159,7 @@ public:
PyEval_ReleaseLock();
_PY_BEGIN_BLOCK_THREADS_
- main_module = PyImport_AddModule("__main__");
+ // main_module = PyImport_AddModule("__main__");
if (PyImport_ImportModule("pythonnator") == 0) {
cerr << MODULENAME ":" << fn << ": failed to import pythonnator module, PYTHONPATH problem? " <<endl;
_PY_END_BLOCK_THREADS_
diff --git a/src/utils/deployCppService.hpp b/src/utils/deployCppService.hpp
index 8782cc9..0e8ab63 100644
--- a/src/utils/deployCppService.hpp
+++ b/src/utils/deployCppService.hpp
@@ -54,8 +54,8 @@ class ServiceParameters;
#define EXC_PAYLOAD 1003
#define NO_PAYLOAD 1005
-static char * getmeta_selector = "Command = 2001";
-static char * annotator_selector = "Command = 2000 or Command = 2002";
+static const char * getmeta_selector = "Command = 2001";
+static const char * annotator_selector = "Command = 2000 or Command = 2002";
static int initialize(ServiceParameters &, apr_pool_t*);
static void* APR_THREAD_FUNC handleCommands(apr_thread_t *thd, void *data);