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

View File

@ -1,9 +1,13 @@
#[cfg(feature = "tracing")]
use std::env; use std::env;
#[cfg(feature = "tracing")]
use std::path::PathBuf; use std::path::PathBuf;
#[cfg(feature = "tracing")] #[cfg(feature = "tracing")]
use lttng_ust_generate::{Provider, Generator, CTFType, CIntegerType}; use lttng_ust_generate::{Provider, Generator, CTFType, CIntegerType};
#[cfg(feature = "tracing")] #[cfg(feature = "tracing")]
fn setup_tracepoints() { fn setup_tracepoints() {
// the provider is called calendar // the provider is called calendar