From 51fea1b1bde1472b9d7da01c308b1cebcab610fb Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 27 May 2020 17:43:08 +1000 Subject: [PATCH] Fix some warnings in ma_mixing.h. --- research/ma_mixing.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/research/ma_mixing.h b/research/ma_mixing.h index ef61e39f..a1293516 100644 --- a/research/ma_mixing.h +++ b/research/ma_mixing.h @@ -951,7 +951,7 @@ static ma_effect* ma_effect_get_root(ma_effect* pEffect) } /* Should never hit this. */ - return NULL; + /*return NULL;*/ } @@ -1239,7 +1239,10 @@ MA_API ma_result ma_effect_init(const ma_effect_config* pConfig, ma_effect* pEff result = ma_effect_init__lpf(pConfig, pEffect); } break; - default: break; + default: + { + result = MA_INVALID_ARGS; /* Unknown effect type. */ + } break; } return result;