Skip to content

Conversation

@SoniHarsh1
Copy link

task.h : Add Missing Macro Guards for Restricted APIs

Description

This pull request adds the missing macro guard conditions in task.h to restrict access to APIs that are conditionally available. Although these conditions were clearly documented in the API descriptions, they were not enforced in the actual implementation.

Adding the guards brings the implementation in line with the documented behavior and prevents unintended API exposure when the corresponding configuration options are disabled.

Test Steps

I have validated the changes using an existing BSP project with FreeRTOS integrated as a submodule. No regressions were observed during testing.

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.

- Add missing conditions to prevent unintended access to
  certain APIs in task.h
- The condition is mentioned in the API description but was
  absent in the code
@sonarqubecloud
Copy link

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.

1 participant