Fix the -DTHREADSAFE=OFF build - #5690
Conversation
|
oops! |
|
It should be returning an our win32 function returns an posix is just a define for pthread which returns an and the no-thread version should be |
the no-thread version! that's a |
This change avoids using the `(void)0` construct for some of the mutex `#define`s, since that makes the "return type" of those "functions" to be `void` instead of `int`.
e78908e to
aa532e2
Compare
git_mutex_unlock()-DTHREADSAFE=OFF build
ah so it is. i focused on the |
| #else | ||
|
|
||
| GIT_INLINE(int) git_threads_global_init(void) { return 0; } | ||
| GIT_INLINE(int) git___noop(void) { return 0; } |
There was a problem hiding this comment.
couldn't think of a better name. also, lmk if we need to do something clever to explicitly mark the arguments as unused (right now it's a non-issue on my machine).
|
Thanks for this! |
This change avoids using the
(void)0construct for some of the mutex#defines, since that makes the "return type" of those "functions" tobe
voidinstead ofint.