- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using PSOC Creator 4.2.0.64 for PSOC5.
ARM GCC 5.4-2016-q2-update.
The static_assert macro appears to work however the IDE reports a warning of an implicit declaration. This does not occur in other tool chains, the Keil IDE editor actually evaluates the assert and generates an error warning during edit if something is changed that causes the static_assert to fail. Is there a way to at least turn off all warnings from static_assert?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi MaGa_1759861
Adding the following line to your program before using the static_assert macro should solve your issue -
#define static_assert _Static_assert
You can also directly use _Static_assert as shown -
_Static_assert( false, "Error 1");
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please check this KBA available at this link:
GCC Warnings Diagnostic in PSoC Creator - KBA225431
It will be useful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi MaGa_1759861
Adding the following line to your program before using the static_assert macro should solve your issue -
#define static_assert _Static_assert
You can also directly use _Static_assert as shown -
_Static_assert( false, "Error 1");
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great, that fixed it perfectly, thanks!