Repository navigation
Fixed the FreeRTOS layer build with GCC 14 by matching the name type - #815
Merged
fdesbiens merged 1 commit intoOct 22, 2026
Merged
Conversation
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) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pcTaskGetName() held the name tx_thread_info_get() returns in a
const char *, but the service takesTX_NAME_CONST CHAR **, which isCHAR **unlessTX_ENABLE_CONST_NAMESis 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
devwith GCC 13), and 3/3 with zero warnings under GCC 14 withTX_ENABLE_CONST_NAMES.