[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #27465 [Core Tor/Tor]: Windows: cast between incompatible function types in address.c



#27465: Windows: cast between incompatible function types in address.c
----------------------------+----------------------------------------------
     Reporter:  teor        |      Owner:  teor
         Type:  defect      |     Status:  assigned
     Priority:  Medium      |  Milestone:  Tor: 0.3.4.x-final
    Component:  Core        |    Version:  Tor: 0.3.4.1-alpha
  Tor/Tor                   |
     Severity:  Normal      |   Keywords:  035-must, 034-must, 034-backport
Actual Points:              |  Parent ID:  #27389
       Points:              |   Reviewer:
      Sponsor:              |
----------------------------+----------------------------------------------
 {{{
 bash.exe : ../src/common/address.c: In function
 'get_interface_addresses_win32':
 At line:2 char:5
 +     & $commandPath $args 2>&1
 +     ~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : NotSpecified:
 (../src/common/a...dresses_win32'::String) [], RemoteException
     + FullyQualifiedErrorId : NativeCommandError

 ../src/common/address.c:1499:14: error: cast between incompatible function
 types from 'FARPROC' {aka 'long long int (*)()'} to 'ULONG (*)(ULONG,
 ULONG,  void *, IP_ADAPTER_ADDRESSES_XP *, ULONG *)' {aka 'long unsigned
 int
 (*)(long unsigned int,  long unsigned int,  void *, struct
 _IP_ADAPTER_ADDRESSES_XP *, long unsigned int *)'} [-Werror=cast-function-
 type]
    if (!(fn = (GetAdaptersAddresses_fn_t)
               ^
 }}}
 https://ci.appveyor.com/project/teor2345/tor/build/1.0.152/job/g7dxnnck0r3p66n9#L1093

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27465>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs