mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 20:19:36 +00:00
[mod_verto] Fix scan-build warnings in swig and enable scan-build on Drone
This commit is contained in:
parent
d67d09705a
commit
d07e1654a2
@ -88,7 +88,6 @@ steps:
|
|||||||
- sed -i '/mod_rtmp/s/^/#/g' modules.conf
|
- sed -i '/mod_rtmp/s/^/#/g' modules.conf
|
||||||
- sed -i '/mod_skinny/s/^/#/g' modules.conf
|
- sed -i '/mod_skinny/s/^/#/g' modules.conf
|
||||||
- sed -i '/mod_unimrcp/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
|
- sed -i '/mod_xml_rpc/s/^/#/g' modules.conf
|
||||||
- ./configure
|
- ./configure
|
||||||
- mkdir -p scan-build
|
- mkdir -p scan-build
|
||||||
@ -121,6 +120,6 @@ trigger:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: affb0747b0f16d9673cbbb327451c99fefc9dee2fd30b34b220bf147ad96a7be
|
hmac: cddd8905a309e3deb7e5859b11aa1ec3593410d9f32ce2f5de3a3557af88f80f
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -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.h"
|
||||||
#include "mcast_cpp.h"
|
#include "mcast_cpp.h"
|
||||||
|
@ -8,6 +8,15 @@
|
|||||||
* interface file instead.
|
* 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
|
#ifndef SWIGPERL
|
||||||
#define SWIGPERL
|
#define SWIGPERL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user