summaryrefslogtreecommitdiff
path: root/csum-file.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2014-11-23 17:14:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-11-25 00:02:38 (GMT)
commit3a0a3a8972369060a1eff8353b64bf7377714b22 (patch)
treeedb27ecf625cdaee2cd231a9573afc7d1abc75a4 /csum-file.h
parent7fa1365c54c28b3cd9375539f381b54061a1880d (diff)
downloadgit-3a0a3a8972369060a1eff8353b64bf7377714b22.zip
git-3a0a3a8972369060a1eff8353b64bf7377714b22.tar.gz
git-3a0a3a8972369060a1eff8353b64bf7377714b22.tar.bz2
git-compat-util.h: don't define _XOPEN_SOURCE on cygwin
A recent update to the gcc compiler (v4.8.3-5 x86_64) on 64-bit cygwin leads to several new warnings about the implicit declaration of the memmem(), strlcpy() and strcasestr() functions. For example: CC archive.o archive.c: In function 'format_subst': archive.c:44:3: warning: implicit declaration of function 'memmem' \ [-Wimplicit-function-declaration] b = memmem(src, len, "$Format:", 8); ^ archive.c:44:5: warning: assignment makes pointer from integer \ without a cast [enabled by default] b = memmem(src, len, "$Format:", 8); ^ This is because <string.h> on Cygwin used to always declare the above functions, but a recent version of it no longer make them visible when _XOPEN_SOURCE is set (even if _GNU_SOURCE and _BSD_SOURCE is set). In order to suppress the warnings, don't define the _XOPEN_SOURCE macro on cygwin. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.h')
0 files changed, 0 insertions, 0 deletions