You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments