Summary: | graphics/libavif: Fix build with clang 14 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Dimitry Andric <dim> | ||||
Component: | Individual Port(s) | Assignee: | Dimitry Andric <dim> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | jbeich | ||||
Priority: | --- | Flags: | jbeich:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 261742 | ||||||
Attachments: |
|
Description
Dimitry Andric
2022-03-17 21:07:45 UTC
Created attachment 232532 [details]
Fix build with clang 14
Comment on attachment 232532 [details]
Fix build with clang 14
Looks OK.
Note, attach patches in "git am" compatible format to save time on feedback roundtrips without accidentally losing metadata.
Upstream PR has been merged, so you may want to change f8fbe288e050 to c18228ff746a then re-run "make makesum". That'd implicitly re-approved. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=48c0caf10662a52b27757f20c23f49b35720be15 commit 48c0caf10662a52b27757f20c23f49b35720be15 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-03-19 20:42:57 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-03-19 20:47:05 +0000 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 graphics/libavif/Makefile | 1 + graphics/libavif/distinfo | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) |