mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
build: Disable dtrace probes under static analysis
The macros for the probes confuse the static analyser, and are often called with arguments which the analyser things shouldn’t be used any more (for example, the address of a block of memory which has just been freed). Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1767
This commit is contained in:
parent
18a232be89
commit
0b4162e714
@ -25,7 +25,9 @@
|
||||
#error "config.h must be included prior to gio_trace.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DTRACE
|
||||
/* Ignore probes when doing static analysis, as they do weird things which
|
||||
* confuses the analyser. */
|
||||
#if defined(HAVE_DTRACE) && !defined(__clang_analyzer__)
|
||||
|
||||
/* include the generated probes header and put markers in code */
|
||||
#include "gio_probes.h"
|
||||
|
@ -25,7 +25,9 @@
|
||||
#error "config.h must be included prior to glib_trace.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DTRACE
|
||||
/* Ignore probes when doing static analysis, as they do weird things which
|
||||
* confuses the analyser. */
|
||||
#if defined(HAVE_DTRACE) && !defined(__clang_analyzer__)
|
||||
|
||||
/* include the generated probes header and put markers in code */
|
||||
#include "glib_probes.h"
|
||||
|
@ -25,7 +25,9 @@
|
||||
#error "config.h must be included prior to gobject_trace.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DTRACE
|
||||
/* Ignore probes when doing static analysis, as they do weird things which
|
||||
* confuses the analyser. */
|
||||
#if defined(HAVE_DTRACE) && !defined(__clang_analyzer__)
|
||||
|
||||
/* include the generated probes header and put markers in code */
|
||||
#include "gobject_probes.h"
|
||||
|
Loading…
Reference in New Issue
Block a user