Skip to content

Commit 093d193

Browse files
committed
addressed some compiler warnings
1 parent f1a2fb6 commit 093d193

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

examples/src/rotator/rotator.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,9 @@ void rotator_process
111111
float Rxyz[3][3];
112112
float* M_rot_tmp;
113113
CH_ORDER chOrdering;
114-
NORM_TYPES norm;
115114

116115
/* locals */
117116
chOrdering = pData->chOrdering;
118-
norm = pData->norm;
119117
order = (int)pData->inputOrder;
120118
nSH = ORDER2NSH(order);
121119

examples/src/spreader/spreader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ void spreader_initCodec
315315
pData->inFrame_t = realloc1d(pData->inFrame_t, (pData->Q) * sizeof(float_complex));
316316

317317
/* New config */
318-
pData->nSources = pData->new_nSources;
319-
pData->procMode = pData->new_procMode;
318+
pData->nSources = nSources;
319+
pData->procMode = procMode;
320320

321321
/* done! */
322322
strcpy(pData->progressBarText,"Done!");

framework/modules/saf_utilities/saf_utility_geometry.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ void euler2Quaternion
128128
{
129129
float cy, sy, cr, sr, cp, sp;
130130

131+
cy = sy = cr = sr = cp = sp = 0.0f;
131132
switch(convention){
132-
case EULER_ROTATION_Y_CONVENTION: assert(0); return; /* Not supported */; break;
133-
case EULER_ROTATION_X_CONVENTION: assert(0); return; /* Not supported */; break;
133+
case EULER_ROTATION_Y_CONVENTION: /* fall through*/
134+
case EULER_ROTATION_X_CONVENTION: assert(0); /* Not supported */; return;
134135
case EULER_ROTATION_YAW_PITCH_ROLL:
135136
cy = cosf((degreesFlag ? alpha*SAF_PI/180.0f : alpha) * 0.5f); /* x */
136137
sy = sinf((degreesFlag ? alpha*SAF_PI/180.0f : alpha) * 0.5f); /* x */

0 commit comments

Comments
 (0)