projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: python: suppress -Wmissing-prototypes warning with SWIG 3.0.10
[lttng-tools.git]
/
extras
/
bindings
/
swig
/
python
/
lttng.i.in
diff --git
a/extras/bindings/swig/python/lttng.i.in
b/extras/bindings/swig/python/lttng.i.in
index f4aee119129f442d393477208694b4c2b882f7cd..684482e1fd2c06605e64ad2cc91e10f55887847f 100644
(file)
--- a/
extras/bindings/swig/python/lttng.i.in
+++ b/
extras/bindings/swig/python/lttng.i.in
@@
-1,3
+1,10
@@
+/*
+ * Copyright (C) 2012 Danny Serres <danny.serres@efficios.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ */
+
%define DOCSTRING
"LTTNG_VERSION_STR
%define DOCSTRING
"LTTNG_VERSION_STR
@@
-22,6
+29,14
@@
multiple concurrent processes and threads. Tracing across multiple systems is al
// This makes the typemap code useable with both Python 2 and 3.
#define PyInt_AsSsize_t PyLong_AsSsize_t
#endif
// This makes the typemap code useable with both Python 2 and 3.
#define PyInt_AsSsize_t PyLong_AsSsize_t
#endif
+
+// Avoid -Wmissing-declarations warning.
+PyObject *SWIG_init(void);
+
+// Avoid -Wmissing-prototypes warning with SWIG 3.0.10.
+#if SWIG_VERSION < 0x30012
+static size_t SWIG_strnlen(const char* s, size_t maxlen);
+#endif
%}
typedef unsigned int uint32_t;
%}
typedef unsigned int uint32_t;
This page took
0.023574 seconds
and
4
git commands to generate.