Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posix Port: Comment and remove unused variables #230

Merged
merged 2 commits into from
Dec 14, 2020

Conversation

alfred2g
Copy link
Contributor

Comment and remove unused variables

Description

Removing an unused variable
Commenting 2 others as they are part of a commented code that was made in a certain way to be compatible with the demo timing requirements.
Do not cancel the idle task if FreeRTOS is compiled without an idle task

Related Issue

https://forums.freertos.org/t/posix-port-compile-issues/11323/4

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

@alfred2g alfred2g requested a review from a team as a code owner December 11, 2020 07:02
@cobusve cobusve merged commit a48f137 into FreeRTOS:master Dec 14, 2020
twpedersen added a commit to twpedersen/FreeRTOS-Kernel that referenced this pull request Dec 17, 2020
Fixes: a48f137 ("Posix Port: Comment and remove unused variables (FreeRTOS#230)")

The above commit introduced the compile error:

/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c: In function ‘prvSetupSignalsAndSchedulerPolicy’:
/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c:528:28: error: incompatible type for argument 3 of ‘pthread_sigmask’
                            *&xSchedulerOriginalSignalMask );
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/signal.h:359,
                 from FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c:53:
/usr/include/x86_64-linux-gnu/bits/sigthread.h:33:31: note: expected ‘__sigset_t * restrict’ {aka ‘struct <anonymous> * restrict’} but argument is of type ‘sigset_t’ {aka ‘struct <anonymous>’}
        __sigset_t *__restrict __oldmask)__THROW;
cobusve pushed a commit that referenced this pull request Jan 8, 2021
Fixes: a48f137 ("Posix Port: Comment and remove unused variables (#230)")

Authored-by: Thomas Pedersen <thomas@adapt-ip.com>
laroche pushed a commit to laroche/FreeRTOS-Kernel that referenced this pull request Apr 18, 2024
* Make changes for MISRA rule 2.2

* Add comments to explain changes

* Fix a typo

* Actually fix a typo

I missed a spot in the previous commit.
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.

2 participants