Re: [PATCH] test-path-utils: handle const parameter of basename and dirname

2017-08-07 Thread Johannes Schindelin
Hi René, On Mon, 7 Aug 2017, René Scharfe wrote: > 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

[PATCH] test-path-utils: handle const parameter of basename and dirname

2017-08-07 Thread René Scharfe
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