Thanks to visit codestin.com
Credit goes to github.com

Skip to content

macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] with Apple clang 17.0.0 #33

@dimpase

Description

@dimpase
./../m4ri/mzd.h:1002:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
 1002 | #if __M4RI_HAVE_SSE2
      |     ^
./../m4ri/m4ri_config.h:7:28: note: expanded from macro '__M4RI_HAVE_SSE2'
    7 | #define __M4RI_HAVE_SSE2                (defined(__SSE2__) && __SSE2__)
      |                                          ^

the latter #define should be using if/then/else instead.

I'll fix it and do a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions