From 815a73c172c567fd3433393ca01014ff04ff9f1d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 26 Dec 2021 19:40:47 -0500 Subject: [PATCH] [pitch_crepe] avoid compiler warnings in release mode --- src/pitch/pitch_crepe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pitch/pitch_crepe.c b/src/pitch/pitch_crepe.c index fefad662..1634b11c 100644 --- a/src/pitch/pitch_crepe.c +++ b/src/pitch/pitch_crepe.c @@ -186,6 +186,7 @@ aubio_pitch_crepe_t *new_aubio_pitch_crepe(void) o->flattened = new_aubio_tensor(1, dense_input); if (!o->flattened) goto failure; +#if defined(DEBUG) // permute and flatten aubio_tensor_t *permute_input = o->maxpool_output[5]; AUBIO_DBG("permute: (%d, %d) ->" @@ -195,6 +196,7 @@ aubio_pitch_crepe_t *new_aubio_pitch_crepe(void) AUBIO_DBG("flatten: (%d, %d) -> (%d)\n", permute_input->shape[1], permute_input->shape[0], o->flattened->shape[0]); +#endif if (aubio_dense_get_output_shape(o->dense_layer, o->flattened, output_shape)) goto failure; @@ -514,6 +516,7 @@ uint_t aubio_pitch_crepe_load_params(aubio_pitch_crepe_t *o) return AUBIO_OK; #else AUBIO_ASSERT(o); + AUBIO_UNUSED(o); AUBIO_ERR("pitch_crepe: hdf5 support was not built in, failed loading" " crepe model\n"); return AUBIO_FAIL; -- 2.11.0