From 91c6b4d62f5545e0095a076e5616b7e1d6e82994 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Mon, 23 Jan 2017 20:19:06 +0900 Subject: silence compiler warning --- fmdriver/fmdriver_fmp.c | 4 ++++ fmdriver/fmdriver_fmp.h | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'fmdriver') diff --git a/fmdriver/fmdriver_fmp.c b/fmdriver/fmdriver_fmp.c index 43fb69d..6cb401f 100644 --- a/fmdriver/fmdriver_fmp.c +++ b/fmdriver/fmdriver_fmp.c @@ -1107,6 +1107,7 @@ static void fmp_pdzf_loop_freq(struct fmdriver_work *work, struct driver_fmp *fmp, struct fmp_part *part, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) { + (void)fmp; if (!part->pdzf.mode) return; if (part->pdzf.mode != 2 || part->lfo[2].depth == 0) { uint32_t start = (d0 << 8) | d1; @@ -1843,6 +1844,7 @@ static void fmp_part_init_lfo_awe(struct fmdriver_work *work, static void fmp_part_pdzf_env(struct fmdriver_work *work, struct driver_fmp *fmp, struct fmp_part *part) { + (void)fmp; switch (part->pdzf.env_state.status) { case PDZF_ENV_ATT: if (!part->pdzf.env_state.cnt--) { @@ -1920,6 +1922,8 @@ static void fmp_part_pdzf_env(struct fmdriver_work *work, } } break; + case PDZF_ENV_OFF: + break; } } diff --git a/fmdriver/fmdriver_fmp.h b/fmdriver/fmdriver_fmp.h index 909387c..d70013c 100644 --- a/fmdriver/fmdriver_fmp.h +++ b/fmdriver/fmdriver_fmp.h @@ -108,6 +108,10 @@ struct fmp_ssgenv { uint8_t release_rate; }; +enum { + PDZF_ENV_VOL_MIN = -15, +}; + struct fmp_part { // 0000 struct { @@ -377,9 +381,6 @@ struct fmp_part { PDZF_ENV_OFF, } status; uint8_t cnt; - enum { - PDZF_ENV_VOL_MIN = -15, - }; int8_t vol; } env_state; bool keyon; -- cgit v1.2.3