STM32CUBE IDE FreeRTOS cmsis_os.h:461:67: warning: ISO C++ forbids converting a string constant to 'char*'
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-07-09 8:04 AM
When freeRTOS header cmsis_os.h is used in *.cpp file, it generates compiler warning
ISO C++ forbids converting a string constant to 'char*'.
Proposed fix:
Change line 326 of cmsis_os.h from:
typedef struct os_thread_def {
char *name; ///< Thread name
to:
typedef struct os_thread_def {
const char *name; ///< Thread name
Labels:
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
