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
parent 36d3ce3a09
commit 753a9406e5
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