aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/common
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-01 18:04:34 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-01 18:04:34 +0000
commit72ecead37cfb44eed226b59ec882a0bb8db6a770 (patch)
tree38120f36142dc3f382f04b5ebdeab5257ba31b06 /os/ports/common
parent96156a229f9d6a80fa753a20f0632396e8d65764 (diff)
downloadChibiOS-72ecead37cfb44eed226b59ec882a0bb8db6a770.tar.gz
ChibiOS-72ecead37cfb44eed226b59ec882a0bb8db6a770.tar.bz2
ChibiOS-72ecead37cfb44eed226b59ec882a0bb8db6a770.zip
CMSIS. Fixed warnings (hate them!).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4250 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/common')
-rw-r--r--os/ports/common/ARMCMx/CMSIS/include/arm_math.h18
-rw-r--r--os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h4
2 files changed, 16 insertions, 6 deletions
diff --git a/os/ports/common/ARMCMx/CMSIS/include/arm_math.h b/os/ports/common/ARMCMx/CMSIS/include/arm_math.h
index 6629c824c..b6eb12889 100644
--- a/os/ports/common/ARMCMx/CMSIS/include/arm_math.h
+++ b/os/ports/common/ARMCMx/CMSIS/include/arm_math.h
@@ -5898,7 +5898,9 @@ extern "C"
/* Iniatilize output for below specified range as least output value of table */
y = pYData[0];
}
- else if(i >= S->nValues)
+ /* CHIBIOS FIX BEGIN */
+ else if(i >= (int32_t)S->nValues)
+ /* CHIBIOS FIX END */
{
/* Iniatilize output for above specified range as last output value of table */
y = pYData[S->nValues - 1];
@@ -5951,8 +5953,9 @@ extern "C"
/* 12 bits for the table index */
/* Index value calculation */
index = ((x & 0xFFF00000) >> 20);
-
- if(index >= (nValues - 1))
+ /* CHIBIOS FIX BEGIN */
+ if(index >= ((int32_t)nValues - 1))
+ /* CHIBIOS FIX END */
{
return (pYData[nValues - 1]);
}
@@ -6014,7 +6017,9 @@ extern "C"
/* Index value calculation */
index = ((x & 0xFFF00000) >> 20u);
- if(index >= (nValues - 1))
+ /* CHIBIOS FIX BEGIN */
+ if(index >= ((int32_t)nValues - 1))
+ /* CHIBIOS FIX END */
{
return (pYData[nValues - 1]);
}
@@ -6074,8 +6079,9 @@ extern "C"
/* Index value calculation */
index = ((x & 0xFFF00000) >> 20u);
-
- if(index >= (nValues - 1))
+ /* CHIBIOS FIX BEGIN */
+ if(index >= ((int32_t)nValues - 1))
+ /* CHIBIOS FIX END */
{
return (pYData[nValues - 1]);
}
diff --git a/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h b/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h
index adb07b5d3..585d2bb56 100644
--- a/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h
+++ b/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h
@@ -593,6 +593,10 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fps
{
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
__ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) );
+/* CHIBIOS FIX BEGIN */
+#else
+ (void)fpscr;
+/* CHIBIOS FIX END */
#endif
}