From 1ff38e0e2cd7f4234c20e33ffeec3815da0df438 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Jun 17 2019 14:03:42 +0000 Subject: python: Remove CPyChecker support We don't use use this tool, lets remove old craft. If someone wants to add this back it must have proper documentation and integrated in the build system. Signed-off-by: Nir Soffer --- diff --git a/python/sanlock.c b/python/sanlock.c index 7f0916a..7574141 100644 --- a/python/sanlock.c +++ b/python/sanlock.c @@ -16,27 +16,13 @@ #define __unused __attribute__ ((unused)) #endif -#ifdef WITH_CPYCHECKER_SETS_EXCEPTION_ATTRIBUTE -#define __sets_exception \ - __attribute__((cpychecker_sets_exception)) -#else -#define __sets_exception -#endif - -#ifdef WITH_CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION_ATTRIBUTE -#define __neg_sets_exception \ - __attribute__((cpychecker_negative_result_sets_exception)) -#else -#define __neg_sets_exception -#endif - #define MODULE_NAME "sanlock" #define BIND_ERROR -1000 /* Functions prototypes */ -static void __set_exception(int en, char *msg) __sets_exception; -static int __parse_resource(PyObject *obj, struct sanlk_resource **res_ret) __neg_sets_exception; +static void __set_exception(int en, char *msg); +static int __parse_resource(PyObject *obj, struct sanlk_resource **res_ret); static void set_error(PyObject *exception, const char* format, PyObject* obj); /* Sanlock module */