Skip to content

Commit

Permalink
addressed some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leomccormack committed Apr 21, 2021
1 parent f1a2fb6 commit 093d193
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions examples/src/rotator/rotator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions examples/src/spreader/spreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down
5 changes: 3 additions & 2 deletions framework/modules/saf_utilities/saf_utility_geometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 093d193

Please sign in to comment.