[MacPorts] #64550: freeciv @2.6.6: at_quick_exit gives -Wimplicit-function-declaration warning, false positive

MacPorts noreply at macports.org
Fri Jan 28 05:43:12 UTC 2022


#64550: freeciv @2.6.6: at_quick_exit gives -Wimplicit-function-declaration
warning, false positive
--------------------+----------------------
 Reporter:  JDLH    |      Owner:  JDLH
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.7.1
 Keywords:          |       Port:
--------------------+----------------------
 When building freeciv @2.6.6 (work in progress, a major rewrite, see
 #62984), MacPorts prints a warning, "indications of -Wimplicit-function-
 declaration", regarding function named `at_quick_exit`. This is a false
 positive. The configuration code which the port uses does explicitly
 include `<stdlib.h>` to declare the function. My "Apple clang version
 11.0.0 (clang-1100.0.33.12)" compiler apparently lacks that feature of the
 C11 standard library.

 This is the initial warning from MacPorts:
 {{{
 % sudo port build freeciv-common
 --->  Computing dependencies for freeciv-common
 --->  Fetching distfiles for freeciv-common
 --->  Verifying checksums for freeciv-common
 --->  Extracting freeciv-common
 --->  Configuring freeciv-common
 Warning: Configuration logfiles contain indications of -Wimplicit-
 function-declaration; check that features were not accidentally disabled:
   strcmp: found in freeciv-2.6.6/config.log
   exit: found in freeciv-2.6.6/config.log
   at_quick_exit: found in freeciv-2.6.6/config.log
 --->  Building freeciv-common
 %
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64550>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list