HomeFreeBSD

graphics/libavif: fix build with clang 14

Description

graphics/libavif: fix build with clang 14

Clang >= 14 warns that mixing declarations and code is incompatible with
standards before C99, even if you compile with -std=c99 or -std=gnu99.

Add -Wno-declaration-after-statement if it is supported, to silence
the warning.

PR: 262634
Approved by: jbeich (maintainer)
Obtained from: https://github.com/AOMediaCodec/libavif/pull/886
MFH: 2022Q1

Details

Provenance
dimAuthored on Mar 19 2022, 8:42 PM
Parents
R11:df9d4384c471: sysutils/smartmontools: Update to 7.3
Branches
Unknown
Tags
Unknown