Skip to content

Commit

Permalink
Suppress warnings from ARM's DSP_Lib code that are spamming developer…
Browse files Browse the repository at this point in the history
…s to no benefit.

Addresses #149
  • Loading branch information
px4dev committed Jan 12, 2013
1 parent 2f94a7a commit 6d30171
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/mathlib/CMSIS/Include/arm_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -5520,7 +5520,7 @@ extern "C"
*pIa = Ialpha;

/* Calculating pIb from Ialpha and Ibeta by equation pIb = -(1/2) * Ialpha + (sqrt(3)/2) * Ibeta */
*pIb = -0.5 * Ialpha + (float32_t) 0.8660254039 *Ibeta;
*pIb = -0.5f * Ialpha + (float32_t) 0.8660254039f *Ibeta;

}

Expand Down Expand Up @@ -5898,7 +5898,7 @@ extern "C"
/* Iniatilize output for below specified range as least output value of table */
y = pYData[0];
}
else if(i >= S->nValues)
else if((unsigned)i >= S->nValues)
{
/* Iniatilize output for above specified range as last output value of table */
y = pYData[S->nValues - 1];
Expand Down
7 changes: 7 additions & 0 deletions apps/mathlib/CMSIS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ INCLUDES += $(DSPLIB_SRCDIR)/Include \
$(DSPLIB_SRCDIR)/Device/ARM/ARMCM4/Include \
$(DSPLIB_SRCDIR)/Device/ARM/ARMCM3/Include

# Suppress some warnings that ARM should fix, but haven't.
EXTRADEFINES += -Wno-unsuffixed-float-constants \
-Wno-sign-compare \
-Wno-shadow \
-Wno-float-equal \
-Wno-unused-variable

#
# Override the default visibility for symbols, since the CMSIS DSPLib doesn't
# have anything we can use to mark exported symbols.
Expand Down

0 comments on commit 6d30171

Please sign in to comment.