summaryrefslogtreecommitdiff
path: root/Documentation/gitdiffcore.txt
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-08-07 15:57:31 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-07 10:50:08 -0700
commit29c2eda80b9d9528ccc881387a0b955249403cbb (patch)
tree5a54809a2f5bf8ce20e128d4c2a3a248f1a65c8a /Documentation/gitdiffcore.txt
parentGit 2.13 (diff)
downloadtgif-29c2eda80b9d9528ccc881387a0b955249403cbb.tar.xz
test-path-utils: handle const parameter of basename and dirname
The parameter to basename(3) and dirname(3) traditionally had the type "char *", but on OpenBSD it's been "const char *" for years. That causes (at least) Clang to throw an incompatible-pointer-types warning for test-path-utils, where we try to pass around pointers to these functions. Avoid this warning (which is fatal in DEVELOPER mode) by ignoring the promise of OpenBSD's implementations to keep input strings unmodified and enclosing them in POSIX-compatible wrappers. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitdiffcore.txt')
0 files changed, 0 insertions, 0 deletions