Skip to content

Commit

Permalink
quiet stupid compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 21, 2018
1 parent 7c0ed23 commit 91a7f2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/util/debug.c
Expand Up @@ -125,6 +125,7 @@ static int lsan_test_pipe[2] = {-1, -1};
static int lsan_test_pid = -1;
static int lsan_state = INT_MAX;

DIAG_OFF(missing-prototypes)
/** Callback for LSAN - do not rename
*
*/
Expand Down Expand Up @@ -158,6 +159,7 @@ int CC_HINT(used) __lsan_is_turned_off(void)
close(lsan_test_pipe[1]);
return 0;
}
DIAG_ON(missing-prototypes)

/** Determine if we're running under LSAN (Leak Sanitizer)
*
Expand Down

0 comments on commit 91a7f2e

Please sign in to comment.