summaryrefslogtreecommitdiff
path: root/utility/rtos_compatibility_layers
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-10-22 10:22:42 -0400
committerGitHub <[email protected]>2026-10-22 10:22:42 -0400
commit3a77bc385c6cac82c71e1c36d6817e0860d12526 (patch)
tree717a61fc7c6ac749e98deb88ded860590d6e5b7e /utility/rtos_compatibility_layers
parenta5b4739d98b1bb465d3ad551ab9c014fbd5d13de (diff)
Fixed the FreeRTOS layer build with GCC 14 by matching the name type (#815)dev
pcTaskGetName() held the name tx_thread_info_get() returns in a const char *, but the service takes TX_NAME_CONST CHAR **, which is CHAR ** unless TX_ENABLE_CONST_NAMES is set. GCC 13 reports the mismatch as a warning; GCC 14 makes incompatible pointer types an error, so the FreeRTOS compatibility layer did not compile with it. The local now uses TX_NAME_CONST CHAR *, so it follows the service's declaration in both configurations. The returned pointer is unchanged. FreeRTOS regression 3/3 with GCC 14.2 and with GCC 13.3, zero warnings with each (one warning on dev with GCC 13), and 3/3 with zero warnings under GCC 14 with TX_ENABLE_CONST_NAMES. Assisted-by: Claude Code (Opus 5.5) <[email protected]>
Diffstat (limited to 'utility/rtos_compatibility_layers')
-rw-r--r--utility/rtos_compatibility_layers/FreeRTOS/tx_freertos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/rtos_compatibility_layers/FreeRTOS/tx_freertos.c b/utility/rtos_compatibility_layers/FreeRTOS/tx_freertos.c
index 3391bf8a..f8889f6f 100644
--- a/utility/rtos_compatibility_layers/FreeRTOS/tx_freertos.c
+++ b/utility/rtos_compatibility_layers/FreeRTOS/tx_freertos.c
@@ -652,7 +652,7 @@ void vTaskPrioritySet(TaskHandle_t xTask,
char *pcTaskGetName(TaskHandle_t xTaskToQuery)
{
TX_THREAD *p_thread;
- const char *p_task_name;
+ TX_NAME_CONST CHAR *p_task_name;
UINT ret;
if(xTaskToQuery == NULL) {