Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information