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

configure: Fix return values in start thread routines #142

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

fweimer-rh
Copy link
Contributor

@fweimer-rh fweimer-rh commented Dec 18, 2023

Thread start routines must return a void * value, and future compilers refuse to convert integers to pointers with just a warning (the virtualtimer probe). Without this change, the probe always fails to compile with future compilers (such as GCC 14).

For the tls probe, return a null pointer for future-proofing, although current and upcoming C compilers do not treat this omission as an error.

Updates commit dd11311 ("configure: fix tls detection").

Related to:

Pull Request Description

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

Thread start routines must return a void * value, and future
compilers refuse to convert integers to pointers with just a warning
(the virtualtimer probe).  Without this change, the probe always fails
to compile with future compilers (such as GCC 14).

For the tls probe, return a null pointer for future-proofing, although
current and upcoming C compilers do not treat this omission as an
error.

Updates commit dd11311 ("configure: fix tls detection").
@gcongiu gcongiu merged commit c36490e into icl-utk-edu:master Dec 18, 2023
15 of 19 checks passed
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