Fix: python: suppress -Wmissing-prototypes warning with SWIG 3.0.10
[lttng-tools.git] / extras / bindings / swig / python / lttng.i.in
index e99c9aecf53750b1c31e54dc7db67d3c7a69990a..684482e1fd2c06605e64ad2cc91e10f55887847f 100644 (file)
@@ -29,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
+
+// 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;
This page took 0.024689 seconds and 4 git commands to generate.