]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] Fix scan-build warnings in swig and enable scan-build on Drone 521/head
authorAndrey Volk <andywolk@gmail.com>
Sun, 22 Mar 2020 01:39:29 +0000 (01:39 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sun, 22 Mar 2020 10:14:14 +0000 (14:14 +0400)
.drone.yml
src/mod/endpoints/mod_verto/mcast/MCAST.i
src/mod/endpoints/mod_verto/mcast/mcast_wrap.cpp

index 65b7222787ba5cb58d20b18e1235743511d688f3..fd0d063ec31d45552a964b532d66db7ef15e4e07 100644 (file)
@@ -88,7 +88,6 @@ steps:
       - sed -i '/mod_rtmp/s/^/#/g' modules.conf
       - sed -i '/mod_skinny/s/^/#/g' modules.conf
       - sed -i '/mod_unimrcp/s/^/#/g' modules.conf
-      - sed -i '/mod_verto/s/^/#/g' modules.conf
       - sed -i '/mod_xml_rpc/s/^/#/g' modules.conf
       - ./configure
       - mkdir -p scan-build
@@ -121,6 +120,6 @@ trigger:
 
 ---
 kind: signature
-hmac: affb0747b0f16d9673cbbb327451c99fefc9dee2fd30b34b220bf147ad96a7be
+hmac: cddd8905a309e3deb7e5859b11aa1ec3593410d9f32ce2f5de3a3557af88f80f
 
 ...
index 097a52bc77a3ccb509b18beb60bd4ac4c55e7672..f8215233ff62ec563a2f359bc519db410f5eff66 100644 (file)
@@ -1,3 +1,13 @@
+%begin %{
+#ifdef __clang_analyzer__
+#include <string.h>
+static int mystrcmp (const char *a, const char *b) {
+    return a == b ? 0 : !a ? -1 : !b ? 1 : strcmp(a, b);
+}
+#define strcmp mystrcmp
+#endif
+%}
+
 %{
 #include "mcast.h"
 #include "mcast_cpp.h"
index a210df4c2b83d21a235860cace87092b39182608..5473788de736fa0d328be3fe11252c6a6bd667fa 100644 (file)
@@ -8,6 +8,15 @@
  * interface file instead.
  * ----------------------------------------------------------------------------- */
 
+#ifdef __clang_analyzer__
+#include <string.h>
+static int mystrcmp (const char *a, const char *b) {
+    return a == b ? 0 : !a ? -1 : !b ? 1 : strcmp(a, b);
+}
+#define strcmp mystrcmp
+#endif
+
+
 
 #ifndef SWIGPERL
 #define SWIGPERL