From e94234e9c86deaffd3ec0a23d7ec324d794cf4ab Mon Sep 17 00:00:00 2001 From: fab Date: Sun, 11 Jun 2023 09:00:19 +0200 Subject: [PATCH] fix build warnings when tracing is disabled Signed-off-by: fab --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index f3ba7fa..ac1bd62 100644 --- a/build.rs +++ b/build.rs @@ -1,9 +1,13 @@ +#[cfg(feature = "tracing")] use std::env; + +#[cfg(feature = "tracing")] use std::path::PathBuf; #[cfg(feature = "tracing")] use lttng_ust_generate::{Provider, Generator, CTFType, CIntegerType}; + #[cfg(feature = "tracing")] fn setup_tracepoints() { // the provider is called calendar