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

[BugFix] Check the return value of posix_memalign before use the aligned buffer. #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GavinMar
Copy link
Collaborator

@GavinMar GavinMar commented Apr 13, 2023

In this PR, we check the return value of posix_memalign before use the aligned buffer. On the one hand, it can avoid the -Wunused-result warning in some compiles, on the other hand, it helps avoid some unexpected error caused by posix memory operarions.

Also, we add the mutex header files to some source files in case of the undefined unique_lock for some special build environment.

…ependent libraries

from system default path first.
Setting it to `OFF` can ensure find the dependent libraries from the given thirdparty path.

Signed-off-by: GavinMar <[email protected]>
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