Skip to content

Commit

Permalink
Disable lsan suppressions text by default so that it doesn't interfer…
Browse files Browse the repository at this point in the history
…e with text from utilities closes #3110
  • Loading branch information
arr2036 committed Nov 7, 2019
1 parent 800aae2 commit f61cfce
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/lib/util/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ DIAG_OFF(missing-prototypes)
/** Callback for LSAN - do not rename
*
*/
const char CC_HINT(used) *__lsan_default_suppressions(void)
char const CC_HINT(used) *__lsan_default_suppressions(void)
{
return
#if defined(__APPLE__)
Expand All @@ -166,6 +166,16 @@ const char CC_HINT(used) *__lsan_default_suppressions(void)
;
}

/** Callback for LSAN - do not rename
*
* Turn off suppressions by default as it interferes with interpreting
* output from some of the test utilities.
*/
char const CC_HINT(used) *__lsan_default_options(void)
{
return "print_suppressions=0";
}

/** Callback for LSAN - do not rename
*
*/
Expand Down

0 comments on commit f61cfce

Please sign in to comment.