[MacPorts] #71405: mercurial build error: passing argument 5 of 'getdirentriesattr' from incompatible pointer type

MacPorts noreply at macports.org
Wed Nov 27 00:42:30 UTC 2024


#71405: mercurial build error: passing argument 5 of 'getdirentriesattr' from
incompatible pointer type
--------------------------+-----------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  mercurial
--------------------------+-----------------------
 {{{
 mercurial/cext/osutil.c: In function '_listdir_batch':
 mercurial/cext/osutil.c:524:58: error: passing argument 5 of
 'getdirentriesattr' from incompatible pointer type [-Wincompatible-
 pointer-types]
   524 |                                         sizeof(attrbuf), &count,
 &basep_unused,
       |                                                          ^~~~~~
       |                                                          |
       |                                                          unsigned
 int *
 In file included from
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/Python.h:29,
                  from mercurial/cext/osutil.c:12:
 /usr/include/unistd.h:606:50: note: expected 'long unsigned int *' but
 argument is of type 'unsigned int *'
   606 | int     getdirentriesattr(int,void*,void*,size_t,unsigned
 long*,unsigned long*,unsigned long*,unsigned long);
       |                                                  ^~~~~~~~~~~~~~
 mercurial/cext/osutil.c:524:66: error: passing argument 6 of
 'getdirentriesattr' from incompatible pointer type [-Wincompatible-
 pointer-types]
   524 |                                         sizeof(attrbuf), &count,
 &basep_unused,
       |
 ^~~~~~~~~~~~~
       |                                                                  |
       |
 unsigned int *
 /usr/include/unistd.h:606:65: note: expected 'long unsigned int *' but
 argument is of type 'unsigned int *'
   606 | int     getdirentriesattr(int,void*,void*,size_t,unsigned
 long*,unsigned long*,unsigned long*,unsigned long);
       |
 ^~~~~~~~~~~~~~
 mercurial/cext/osutil.c:525:41: error: passing argument 7 of
 'getdirentriesattr' from incompatible pointer type [-Wincompatible-
 pointer-types]
   525 |                                         &new_state, 0);
       |                                         ^~~~~~~~~~
       |                                         |
       |                                         unsigned int *
 /usr/include/unistd.h:606:80: note: expected 'long unsigned int *' but
 argument is of type 'unsigned int *'
   606 | int     getdirentriesattr(int,void*,void*,size_t,unsigned
 long*,unsigned long*,unsigned long*,unsigned long);
       |
 ^~~~~~~~~~~~~~
 }}}

 This is gcc14, it is stricter that gcc13.

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


More information about the macports-tickets mailing list