AnsweredAssumed Answered

CMSIS_OS.h warning - osThreadDef, warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]

Question asked by greenwood.greg on May 1, 2018

Has anyone seen this warning while using FreeRTOS?  The full define is :

#define osThreadDef(name, thread, priority, instances, stacksz)  \
const osThreadDef_t os_thread_def_##name = \
{ #name, (thread), (priority), (instances), (stacksz)}

 

This define is being used because the current FreeRTOSConfig.h has configSUPPORT_STATIC_ALLOCATION == 0.  This was taken from the tcpip RTOS example from H7_V1.2.0.

 

Has anyone seen this?

Outcomes