Fix: python: suppress -Wmissing-prototypes warning with SWIG 3.0.10
[lttng-tools.git] / extras / bindings / swig / python / lttng.i.in
index b6b6f960eba7720955611e3adbeceaa3679195e2..684482e1fd2c06605e64ad2cc91e10f55887847f 100644 (file)
@@ -32,6 +32,11 @@ multiple concurrent processes and threads. Tracing across multiple systems is al
 
 // 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.023084 seconds and 4 git commands to generate.