[MacPorts] #61696: transcode @1.1.7: error: implicit declaration of function 'audio_resample_close' is invalid in C99

MacPorts noreply at macports.org
Wed May 1 06:00:11 UTC 2024


#61696: transcode @1.1.7: error: implicit declaration of function
'audio_resample_close' is invalid in C99
-------------------------+-------------------------------------------------
  Reporter:  mf2k        |      Owner:  Liontooth
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  catalina bigsur monterey ventura
      Port:  transcode   |  sonoma
-------------------------+-------------------------------------------------

Comment (by ryandesign):

 Replying to [comment:6 kencu]:
 > this works, although frowned upon of course:
 >
 > {{{
 > configure.cppflags-append -Wno-implicit-function-declaration
 > }}}

 CPPFLAGS are used for both C and C++ code but implicit function
 declarations are a C compiler warning. That flag should not be used for
 C++ code. (clang++ does not warn but g++ does: `cc1plus: warning: command-
 line option '-Wno-implicit-function-declaration' is valid for C/ObjC but
 not for C++`)

 Instead of turning off the warning entirely, it's better to turn the error
 back into a warning with `-Wno-error=implicit-function-declaration`. If we
 disable the error, we should also mark the port as incompatible with
 arm64.

 If you have a patch for your work in progress on quashing these issues,
 please attach it!

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


More information about the macports-tickets mailing list