[MacPorts] #62631: fuzz @0.6_1: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror, -Wimplicit-function-declaration]

MacPorts noreply at macports.org
Thu Feb 23 15:24:45 UTC 2023


#62631: fuzz @0.6_1: implicitly declaring library function 'strcmp' with type 'int
(const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
--------------------------+--------------------
  Reporter:  c-kloukinas  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.4
Resolution:               |   Keywords:  BigSur
      Port:  fuzz         |
--------------------------+--------------------

Comment (by barracuda156):

 On 10.6:
 {{{
 getopt.c: In function ‘_getopt_internal’:
 getopt.c:659: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:683: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:713: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:729: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:734: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:845: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:868: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:888: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:902: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 getopt.c:906: warning: incompatible implicit declaration of built-in
 function ‘strlen’
 fuzz.c: In function ‘main’:
 fuzz.c:182: warning: format ‘%u’ expects type ‘unsigned int *’, but
 argument 3 has type ‘long unsigned int *’
 fuzz.c:188: warning: format ‘%u’ expects type ‘unsigned int *’, but
 argument 3 has type ‘long unsigned int *’
 fuzz.c:197: warning: format ‘%u’ expects type ‘unsigned int *’, but
 argument 3 has type ‘long unsigned int *’
 fuzz.c:203: warning: format ‘%u’ expects type ‘unsigned int *’, but
 argument 3 has type ‘long unsigned int *’
 fuzz.c:209: warning: format ‘%u’ expects type ‘unsigned int *’, but
 argument 3 has type ‘long unsigned int *’
 fuzz.c:234: warning: format ‘%u’ expects type ‘unsigned int *’, but
 argument 3 has type ‘long unsigned int *’
 fuzz.c:240: warning: format ‘%u’ expects type ‘unsigned int *’, but
 argument 3 has type ‘long unsigned int *’
 fuzz.c:410: warning: format ‘%u’ expects type ‘unsigned int’, but argument
 2 has type ‘long unsigned int’
 fuzz.c: In function ‘print_arglist’:
 fuzz.c:522: warning: format ‘%x’ expects type ‘unsigned int’, but argument
 3 has type ‘char **’
 fuzz.c:524: warning: format ‘%x’ expects type ‘unsigned int’, but argument
 4 has type ‘char *’
 fuzz.c:530: warning: '0' flag ignored with precision and ‘%x’ printf
 format
 }}}

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


More information about the macports-tickets mailing list