- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello to all,
I have build a project but there are some warnings .
I want to revise the following warnings:
1,ignoring #pragma arm section [-Wunknown-pragmas]:
How to use "__attribute__((section("name")))" instead of "#pragma arm section" ?
2,always_inline function might not be inlinable [-Wattributes]:
How to solve this warning?
Can you please help me to get rid of the warnings?
Best Wishes,
JCD
Solved! Go to Solution.
- Labels:
-
ModusToolbox PSoC 6 SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi LinglingG_46,
Thanks for your suggestions, but the content of the second question is a bit uncomprehending.Whether the deletion mentioned is "__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );"
The first question has been solved.
For the second question, I tried to delete the"__attribute__((always_inline))", and the warning does not appear after deleteing.
Best wishes,
JCD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please refer:
The first question please refer to the linker: 1: https://www.keil.com/support/man/docs/armcc/armcc_chr1359124985290.htm
The second question:
2: If you delete the __asm sentence, what happened?
Could you please add your test code here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi LinglingG_46,
Thanks for your suggestions, but the content of the second question is a bit uncomprehending.Whether the deletion mentioned is "__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );"
The first question has been solved.
For the second question, I tried to delete the"__attribute__((always_inline))", and the warning does not appear after deleteing.
Best wishes,
JCD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please make sure that the IDE can support the "__attribute__((always_inline))".