Skip to content

Commit 9009d2d

Browse files
Move warning pragma to private header for MSVC
1 parent 4396adb commit 9009d2d

607 files changed

Lines changed: 2516 additions & 589 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Include/arm_math_types.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@ extern "C"
9191
#define SECTION_NOINIT
9292
#define NO_INLINE __declspec(noinline)
9393

94-
#pragma warning(push)
95-
#pragma warning(disable:4127)
96-
#pragma warning(disable:4244)
97-
#pragma warning(disable:4456)
98-
#pragma warning(disable:4701)
99-
#pragma warning(disable:4703)
100-
#pragma warning(disable:4310)
10194

10295
#elif defined ( __APPLE_CC__ )
10396
#include <stdint.h>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#ifndef ARM_COMPILER_SPECIFIC_H_
2+
#define ARM_COMPILER_SPECIFIC_H_
3+
4+
/* CMSIS-DSP definitions for some specific compilers.
5+
Those definitions should not interfere with client code
6+
and as consequence are in a private header.
7+
*/
8+
9+
#if defined (_MSC_VER )
10+
#pragma warning(push)
11+
#pragma warning(disable:4127)
12+
#pragma warning(disable:4244)
13+
#pragma warning(disable:4456)
14+
#pragma warning(disable:4701)
15+
#pragma warning(disable:4703)
16+
#pragma warning(disable:4310)
17+
18+
#endif
19+
20+
#endif

Source/BasicMathFunctions/arm_abs_f16.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_abs_f16.c
44
* Description: Floating-point vector absolute value
@@ -25,6 +25,8 @@
2525
* See the License for the specific language governing permissions and
2626
* limitations under the License.
2727
*/
28+
#include "arm_compiler_specific.h"
29+
2830

2931
#include "dsp/basic_math_functions_f16.h"
3032
#include <math.h>

Source/BasicMathFunctions/arm_abs_f32.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_abs_f32.c
44
* Description: Floating-point vector absolute value
@@ -8,6 +8,7 @@
88
*
99
* Target Processor: Cortex-M and Cortex-A cores
1010
* -------------------------------------------------------------------- */
11+
1112
/*
1213
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
1314
*
@@ -25,6 +26,8 @@
2526
* See the License for the specific language governing permissions and
2627
* limitations under the License.
2728
*/
29+
#include "arm_compiler_specific.h"
30+
2831

2932
#include "dsp/basic_math_functions.h"
3033
#include <math.h>

Source/BasicMathFunctions/arm_abs_f64.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_abs_f64.c
44
* Description: Floating-point vector absolute value
@@ -8,6 +8,7 @@
88
*
99
* Target Processor: Cortex-M and Cortex-A cores
1010
* -------------------------------------------------------------------- */
11+
1112
/*
1213
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
1314
*
@@ -25,6 +26,8 @@
2526
* See the License for the specific language governing permissions and
2627
* limitations under the License.
2728
*/
29+
#include "arm_compiler_specific.h"
30+
2831

2932
#include "dsp/basic_math_functions.h"
3033
#include <math.h>

Source/BasicMathFunctions/arm_abs_q15.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_abs_q15.c
44
* Description: Q15 vector absolute value
@@ -8,6 +8,7 @@
88
*
99
* Target Processor: Cortex-M and Cortex-A cores
1010
* -------------------------------------------------------------------- */
11+
1112
/*
1213
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
1314
*
@@ -25,6 +26,8 @@
2526
* See the License for the specific language governing permissions and
2627
* limitations under the License.
2728
*/
29+
#include "arm_compiler_specific.h"
30+
2831

2932
#include "dsp/basic_math_functions.h"
3033

Source/BasicMathFunctions/arm_abs_q31.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_abs_q31.c
44
* Description: Q31 vector absolute value
@@ -8,6 +8,7 @@
88
*
99
* Target Processor: Cortex-M and Cortex-A cores
1010
* -------------------------------------------------------------------- */
11+
1112
/*
1213
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
1314
*
@@ -25,6 +26,8 @@
2526
* See the License for the specific language governing permissions and
2627
* limitations under the License.
2728
*/
29+
#include "arm_compiler_specific.h"
30+
2831

2932
#include "dsp/basic_math_functions.h"
3033

Source/BasicMathFunctions/arm_abs_q7.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_abs_q7.c
44
* Description: Q7 vector absolute value
@@ -8,6 +8,7 @@
88
*
99
* Target Processor: Cortex-M and Cortex-A cores
1010
* -------------------------------------------------------------------- */
11+
1112
/*
1213
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
1314
*
@@ -25,6 +26,8 @@
2526
* See the License for the specific language governing permissions and
2627
* limitations under the License.
2728
*/
29+
#include "arm_compiler_specific.h"
30+
2831

2932
#include "dsp/basic_math_functions.h"
3033

Source/BasicMathFunctions/arm_add_f16.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_add_f16.c
44
* Description: Floating-point vector addition
@@ -8,6 +8,7 @@
88
*
99
* Target Processor: Cortex-M and Cortex-A cores
1010
* -------------------------------------------------------------------- */
11+
1112
/*
1213
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
1314
*
@@ -25,6 +26,8 @@
2526
* See the License for the specific language governing permissions and
2627
* limitations under the License.
2728
*/
29+
#include "arm_compiler_specific.h"
30+
2831

2932
#include "dsp/basic_math_functions_f16.h"
3033

Source/BasicMathFunctions/arm_add_f32.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ----------------------------------------------------------------------
1+
/* ----------------------------------------------------------------------
22
* Project: CMSIS DSP Library
33
* Title: arm_add_f32.c
44
* Description: Floating-point vector addition
@@ -8,6 +8,7 @@
88
*
99
* Target Processor: Cortex-M and Cortex-A cores
1010
* -------------------------------------------------------------------- */
11+
1112
/*
1213
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
1314
*
@@ -25,6 +26,8 @@
2526
* See the License for the specific language governing permissions and
2627
* limitations under the License.
2728
*/
29+
#include "arm_compiler_specific.h"
30+
2831

2932
#include "dsp/basic_math_functions.h"
3033

0 commit comments

Comments
 (0)