]> The Tcpdump Group git mirrors - libpcap/commit
Fix compiler warnings on MSYS2/Cygwin 897/head
authorOrgad Shaneh <[email protected]>
Mon, 6 Jan 2020 20:56:32 +0000 (22:56 +0200)
committerOrgad Shaneh <[email protected]>
Tue, 7 Jan 2020 08:45:45 +0000 (10:45 +0200)
commit004d48aa51a5ec5488f477a7b318459ac1a09e26
treebb81a84cc86ae7a40bde4ff3c892b3b24a3c8828
parent1b8a2c25d4a1f6f220aea8a7039bad1227343677
Fix compiler warnings on MSYS2/Cygwin

/f/Projects/libpcap/fmtutils.c:114:20: warning: initialization of ื’\80\98char *ื’\80\99 from ื’\80\98intื’\80\99 makes pointer from integer without a cast [-Wint-conversion]
  114 |  char *errstring = strerror_r(errnum, strerror_buf, PCAP_ERRBUF_SIZE);
      |                    ^~~~~~~~~~

CMake executes the test for strerror_r with GNU_SOURCE defined,
but the actual application did not define it.
ftmacros.h