Skip to content

Conversation

@razrbro
Copy link
Contributor

@razrbro razrbro commented Sep 17, 2025

Fix: suppress unused-variable warning in GCC/Posix pxPortInitialiseStack

Description

Silences a compiler warning when configASSERT() compiles to a no-op by casting ulStackSize to (void). No logic or runtime behavior changed.

FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix/port.c:218:12: warning:
variable 'ulStackSize' set but not used [-Wunused-but-set-variable]
  218 |     size_t ulStackSize;
      |            ^
1 warning generated.

Test Steps

  • Build with configASSERT disabled → compiles cleanly, no warnings

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

N/A

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sonarqubecloud
Copy link

@tony-josi-aws tony-josi-aws merged commit 692c4b0 into FreeRTOS:main Sep 17, 2025
17 checks passed
moninom1 pushed a commit to moninom1/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
* * Added TraceRecorder demo for Percepio View in CORTEX_MPS2_QEMU_IAR_GCC (only gcc supported at the moment)

* * Added TraceRecorder demo instructions in readme.md.

* * Updated FreeRTOS-Plus-Trace pointer

* * Using FreeRTOS-Plus-Trace submodule (TraceRecorder) instead of a static TraceRecorder copy.
sauleThsQuin pushed a commit to sauleThsQuin/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
sauleThsQuin pushed a commit to sauleThsQuin/FreeRTOS-Kernel that referenced this pull request Oct 2, 2025
sauleThsQuin pushed a commit to sauleThsQuin/FreeRTOS-Kernel that referenced this pull request Oct 3, 2025
sauleThsQuin pushed a commit to sauleThsQuin/FreeRTOS-Kernel that referenced this pull request Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants