Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build failure on macOS: malloc.c: error: implicit declaration of function 'memalign' [-Wimplicit-function-declaration] #23

Open

Description

Building from a584f48 with gcc 14.2.0:

malloc.c: In function 'alpha_memalign':
malloc.c:36:15: error: implicit declaration of function 'memalign' [-Wimplicit-function-declaration]
 36 | void *ret = memalign(alignment, bytes);
 | ^~~~~~~~
malloc.c:36:15: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]

macOS does not have memalign and apparently does not need it either.
posix_memalign or malloc could be used, if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /