Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMSIS DSP: arm_math warnings for ARMCC 5.2x #188

Closed
0xc0170 opened this issue Apr 25, 2017 · 2 comments
Closed

CMSIS DSP: arm_math warnings for ARMCC 5.2x #188

0xc0170 opened this issue Apr 25, 2017 · 2 comments
Assignees

Comments

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 25, 2017

This is the output if ARMCC is used with --gnu flag (thus __GNUC__ is defined). This is causing the following warnings:

[Warning] arm_math.h@298,0:  #2803-D: unrecognized GCC pragma
[Warning] arm_math.h@299,0:  #2803-D: unrecognized GCC pragma
[Warning] arm_math.h@300,0:  #2803-D: unrecognized GCC pragma
[Warning] arm_math.h@301,0:  #2803-D: unrecognized GCC pragma
[Warning] arm_math.h@4949,0:  #3108-D: attribute "__packed__" does not apply here
[Warning] arm_math.h@4957,0:  #3108-D: attribute "__packed__" does not apply here
[Warning] arm_math.h@7218,0:  #2803-D: unrecognized GCC pragma

This is causing pragma warnings: https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/DSP/Include/arm_math.h#L297 (one more line in the end of the file also). The pragma are easy to fix - add "not defined ARMCC" : #if defined(__GNUC__) && !defined ( __CC_ARM ). I'll can send a patch for review

However, how to fix the __packed__ attribute?

I have installed armcc 5.23 that I am testing with.

@0xc0170
Copy link
Contributor Author

0xc0170 commented Apr 25, 2017

Proposed fix : #189

@christophe0606
Copy link
Contributor

There were several changes to arm_math.h since this issue was opened.

I'll think this issue is fixed. Feel free to reopen it if you still have the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants