summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/tpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/tpm.c b/src/lib/tpm.c
index 52c28de7..7a17ef6b 100644
--- a/src/lib/tpm.c
+++ b/src/lib/tpm.c
@@ -95,6 +95,9 @@ static void tpm_debug_thread(struct pthr_el * e)
diff = ts_diff_ms(&now, &e->start) / 1000;
intv = ts_diff_ms(&now, &e->last) / 1000;
+ (void) diff; /* Never read if both build options off (0) */
+ (void) intv; /* Never read if report option off (0) */
+
if (BETWEEN(TPM_DEBUG_REPORT_INTERVAL, 0, intv)) {
log_dbg("Thread %d:%lx running for %ld s.\n",
getpid(),e->thr, diff);