[MacPorts] #68615: MenuMeters @1.1.6.1: error: a function declaration without a prototype is deprecated in all versions of C (was: Installing MenuMeters on Mac Book with Sonoma (x86_64))

MacPorts noreply at macports.org
Fri Nov 3 22:06:50 UTC 2023


#68615: MenuMeters @1.1.6.1: error: a function declaration without a prototype is
deprecated in all versions of C
-------------------------+----------------------
  Reporter:  pipp8       |      Owner:  Tatsh
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  sonoma
      Port:  MenuMeters  |
-------------------------+----------------------
Changes (by ryandesign):

 * port:  mennumeters => MenuMeters


Comment:

 Ok, your log matches what we see on our Sonoma buildbot worker:

 {{{
 :info:destroot
 /opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters-2.1.6.1/hardware_reader/smc_reader.m:6:22:
 error: a function declaration without a prototype is deprecated in all
 versions of C [-Werror,-Wstrict-prototypes]
 :info:destroot kern_return_t SMCOpen()
 :info:destroot                      ^
 :info:destroot                       void
 :info:destroot
 /opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters-2.1.6.1/hardware_reader/smc_reader.m:38:23:
 error: a function declaration without a prototype is deprecated in all
 versions of C [-Werror,-Wstrict-prototypes]
 :info:destroot kern_return_t SMCClose()
 :info:destroot                       ^
 :info:destroot                        void
 }}}
 {{{
 :info:destroot
 /opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters-2.1.6.1/hardware_reader/applesilicon_hardware_reader.m:57:28:
 error: a function declaration without a prototype is deprecated in all
 versions of C [-Werror,-Wstrict-prototypes]
 :info:destroot static void initEventSystem(){
 :info:destroot                            ^
 :info:destroot                             void
 }}}

 The fix for this issue was submitted to the developers of MenuMeters here
 but has not yet been accepted:

 https://github.com/yujitach/MenuMeters/pull/305/commits/5c44f1f9bf97d01a75a73d7aaddea049564ad68c

 We could apply that patch to MacPorts.

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


More information about the macports-tickets mailing list