[MacPorts] #74300: libavif @1.4.2: expected parameter declarator

MacPorts noreply at macports.org
Thu Aug 6 01:00:44 UTC 2026


#74300: libavif @1.4.2: expected parameter declarator
---------------------------+---------------------
  Reporter:  Dave-Allured  |      Owner:  mascguy
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:  fixed         |   Keywords:
      Port:  libavif       |
---------------------------+---------------------

Comment (by jmroot):

 Looks like they're using CMAKE_C_STANDARD which sets the default standard
 for all targets globally. But they're not setting
 CMAKE_C_STANDARD_REQUIRED in the C11 case, which apparently makes it more
 of a suggestion.
 {{{
 # Set C11 as the default
 if(AVIF_ENABLE_NODISCARD)
     # [[nodiscard]] requires C23.
     set(CMAKE_C_STANDARD 23)
     set(CMAKE_C_STANDARD_REQUIRED ON)
 else()
     set(CMAKE_C_STANDARD 11)
 endif()
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/74300#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list