fix build warnings when tracing is disabled

Signed-off-by: fab <fab@pop-os.localdomain>
This commit is contained in:
fab 2023-06-11 09:00:19 +02:00 committed by Fabrizio Iannetti
parent f8e5887f24
commit e94234e9c8
1 changed files with 4 additions and 0 deletions

View File

@ -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