-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
@@ -235,37 +235,38 @@ GIT_INLINE(int64_t) git_atomic64_get(git_atomic64 *a) | |||
|
|||
#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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)0
construct for some of the mutex#define
s, since that makes the "return type" of those "functions" tobe
void
instead ofint
.