Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Un-static gitmkstemps

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:02

Brian Gernhardt [off-list ref] writes:
It may not be used in most builds, but it's used via a #ifdef in
git-compat-util.h  ...
Hmm, do you mean "#define", not "#ifdef", specifically, this:

    maint:git-compat-util.h:#define mkstemps gitmkstemps
... Also, making it static makes a -Wall compile fail
since it's not used in the file without NO_MKSTEMPS.
Your alternative of not defining on builds without NO_MKSTEMPS is better,
and probably even better yet, it would make sense to move the definition
of git_mkstemps() out of wrapper.c and have it somewhere in compat/, just
like the way in which compat/qsort.c defines git_qsort() that is used as a
replacement for qsort() via #define on systems that lack it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help