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

Replace alignment_of_long_double with C11 alignof #12658

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 9, 2024

  1. Replace alignment_of_long_double with C11 alignof if possible

    This removes a static variable in a static function and uses
    C11 `alignof` instead to get a compile-time value. Since we don't
    currently require C11 we keep the old implementation as fallback.
    
    Also fixes this compiler warning:
    
    ```
    opal_copy_functions_heterogeneous.c:495:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      495 | alignment_of_long_double() {
          | ^~~~~~~~~~~~~~~~~~~~~~~~
    ```
    by adding `void` as parameter.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1fbc405 View commit details
    Browse the repository at this point in the history