From 093d193a3a3cc4750dce766fe08aa780df1cf81d Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 21 Apr 2021 19:20:21 +0300 Subject: [PATCH] addressed some compiler warnings --- examples/src/rotator/rotator.c | 2 -- examples/src/spreader/spreader.c | 4 ++-- framework/modules/saf_utilities/saf_utility_geometry.c | 5 +++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/src/rotator/rotator.c b/examples/src/rotator/rotator.c index 76d9a8cf6..d0eb318d2 100644 --- a/examples/src/rotator/rotator.c +++ b/examples/src/rotator/rotator.c @@ -111,11 +111,9 @@ void rotator_process float Rxyz[3][3]; float* M_rot_tmp; CH_ORDER chOrdering; - NORM_TYPES norm; /* locals */ chOrdering = pData->chOrdering; - norm = pData->norm; order = (int)pData->inputOrder; nSH = ORDER2NSH(order); diff --git a/examples/src/spreader/spreader.c b/examples/src/spreader/spreader.c index ce4ac5db3..bc41953bd 100644 --- a/examples/src/spreader/spreader.c +++ b/examples/src/spreader/spreader.c @@ -315,8 +315,8 @@ void spreader_initCodec pData->inFrame_t = realloc1d(pData->inFrame_t, (pData->Q) * sizeof(float_complex)); /* New config */ - pData->nSources = pData->new_nSources; - pData->procMode = pData->new_procMode; + pData->nSources = nSources; + pData->procMode = procMode; /* done! */ strcpy(pData->progressBarText,"Done!"); diff --git a/framework/modules/saf_utilities/saf_utility_geometry.c b/framework/modules/saf_utilities/saf_utility_geometry.c index 1847d7530..4e24dbc01 100644 --- a/framework/modules/saf_utilities/saf_utility_geometry.c +++ b/framework/modules/saf_utilities/saf_utility_geometry.c @@ -128,9 +128,10 @@ void euler2Quaternion { float cy, sy, cr, sr, cp, sp; + cy = sy = cr = sr = cp = sp = 0.0f; switch(convention){ - case EULER_ROTATION_Y_CONVENTION: assert(0); return; /* Not supported */; break; - case EULER_ROTATION_X_CONVENTION: assert(0); return; /* Not supported */; break; + case EULER_ROTATION_Y_CONVENTION: /* fall through*/ + case EULER_ROTATION_X_CONVENTION: assert(0); /* Not supported */; return; case EULER_ROTATION_YAW_PITCH_ROLL: cy = cosf((degreesFlag ? alpha*SAF_PI/180.0f : alpha) * 0.5f); /* x */ sy = sinf((degreesFlag ? alpha*SAF_PI/180.0f : alpha) * 0.5f); /* x */