From a771d9abd9ce97228efa7a0dfc9c4d89690e9b38 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 9 Mar 2020 08:27:47 +0100 Subject: [PATCH] app_python3: declare global vars extern in header file --- src/modules/app_python3/app_python3_mod.c | 1 + src/modules/app_python3/python_support.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/app_python3/app_python3_mod.c b/src/modules/app_python3/app_python3_mod.c index 92ce10e04fd..502a6d540b6 100644 --- a/src/modules/app_python3/app_python3_mod.c +++ b/src/modules/app_python3/app_python3_mod.c @@ -53,6 +53,7 @@ static int child_init(int rank); static void mod_destroy(void); PyObject *_sr_apy_handler_obj = NULL; +PyObject *format_exc_obj = NULL; char *dname = NULL, *bname = NULL; diff --git a/src/modules/app_python3/python_support.h b/src/modules/app_python3/python_support.h index 97c4e72e3e1..8859f9a32aa 100644 --- a/src/modules/app_python3/python_support.h +++ b/src/modules/app_python3/python_support.h @@ -25,7 +25,7 @@ #include #include -PyObject *format_exc_obj; +extern PyObject *format_exc_obj; void python_handle_exception(const char *, ...);