[MacPorts] #68320: warning: a function declaration without a prototype is deprecated in all versions of C

MacPorts noreply at macports.org
Sat Oct 28 06:10:01 UTC 2023


#68320: warning: a function declaration without a prototype is deprecated in all
versions of C
-------------------------+---------------------
  Reporter:  ryandesign  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.8.99
Resolution:              |   Keywords:  ventura
      Port:              |
-------------------------+---------------------

Comment (by chrstphrchvz):

 Fix proposed in [https://github.com/macports/macports-base/pull/302],
 which also takes care of a few encountered during `make all` of base
 (excluding those in `vendor`):

 {{{
 darwintrace.c:179:41: warning: a function declaration without a prototype
 is deprecated in all versions of C [-Wstrict-prototypes]
   179 | static inline void __darwintrace_tid_set() {
       |                                         ^
       |                                          void
 darwintrace.c:293:38: warning: a function declaration without a prototype
 is deprecated in all versions of C [-Wstrict-prototypes]
   293 | static void __darwintrace_get_filemap() {
       |                                      ^
       |                                       void
 darwintrace.c:742:24: warning: a function declaration without a prototype
 is deprecated in all versions of C [-Wstrict-prototypes]
   742 | static path_t *path_new() {
       |                        ^
       |                         void
 }}}

 {{{
 main.c:411:15: warning: a function declaration without a prototype is
 deprecated in all versions of C [-Wstrict-prototypes]
   411 | UnmonitorChild()
       |               ^
       |                void
 main.c:418:16: warning: a function declaration without a prototype is
 deprecated in all versions of C [-Wstrict-prototypes]
   418 | MonitoringChild()
       |                ^
       |                 void
 2 warnings generated.
 }}}

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


More information about the macports-tickets mailing list