Skip to content

[RTOS] fix compilation warning #1027

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

Merged
merged 1 commit into from
Apr 10, 2015
Merged

[RTOS] fix compilation warning #1027

merged 1 commit into from
Apr 10, 2015

Conversation

jrjang
Copy link
Contributor

@jrjang jrjang commented Apr 10, 2015

pragma push/pop/Ospace are only supported by ARM compiler. Change
predefined marco from arm to __CC_ARM. Warning messages are
shown as below.

[Warning] rt_CMSIS.c@1867: 1866:0: warning: ignoring #pragma push
[-Wunknown-pragmas] ignoring #pragma Ospace [-Wunknown-pragmas]
[Warning] rt_CMSIS.c@1884: 1866:0: warning: ignoring #pragma push
[-Wunknown-pragmas] ignoring #pragma pop [-Wunknown-pragmas]

Change-Id: Ife657b710d694449b30dc4b3150cd49c883fc080
Signed-off-by: Jun-Ru Chang [email protected]

pragma push/pop/Ospace are only supported by ARM compiler. Change
predefined marco from __arm__ to __CC_ARM. Warning messages are
shown as below.

[Warning] rt_CMSIS.c@1867: 1866:0: warning: ignoring #pragma push
[-Wunknown-pragmas] ignoring #pragma Ospace  [-Wunknown-pragmas]
[Warning] rt_CMSIS.c@1884: 1866:0: warning: ignoring #pragma push
[-Wunknown-pragmas] ignoring #pragma pop  [-Wunknown-pragmas]

Change-Id: Ife657b710d694449b30dc4b3150cd49c883fc080
Signed-off-by: Jun-Ru Chang <[email protected]>
@toyowata
Copy link
Contributor

Ah, you are right.

The "arm" macro is predefined by both ARM compiler (armcc) and gcc.
Changing to "__CC_ARM" makes more sense.

0xc0170 added a commit that referenced this pull request Apr 10, 2015
RTOS - fix compilation warning
@0xc0170 0xc0170 merged commit 31d139e into ARMmbed:master Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants