Skip to content

BUG: remove use of long-deprecated implicit function declarations (compat with newer clang) #746

@h-vetinari

Description

@h-vetinari

ISO C23 finally removed K&R-style, implicit function declarations, and clang 16 now got stricter about enforcing the long-standing deprecation of these (introduced already as deprecated in the first C standard 🤯)

This causes compilation of blis to fail as follows:

blastest/f2c/open.c:180:7: fatal error: call to undeclared function '_access'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                if (access(buf,0))
                    ^
blastest/f2c/open.c:31:16: note: expanded from macro 'access'
#define access _access

AFAIU, GCC is planning to enable a similar warning by default starting in GCC 14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions