fix make warnings in debug.c MacOS (#7805)
Co-authored-by: Oran Agra <oran@redislabs.com> (cherry picked from commit 1b3b75208c243fe9e18f34c4fb5f0233c2dc5a7f)
This commit is contained in:
parent
e5e353c81d
commit
aa1feec746
@ -1510,7 +1510,7 @@ int memtest_test_linux_anonymous_maps(void) {
|
|||||||
closeDirectLogFiledes(fd);
|
closeDirectLogFiledes(fd);
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* HAVE_PROC_MAPS */
|
||||||
|
|
||||||
static void killMainThread(void) {
|
static void killMainThread(void) {
|
||||||
int err;
|
int err;
|
||||||
@ -1527,7 +1527,7 @@ static void killMainThread(void) {
|
|||||||
* should be used only when it's critical to stop the threads for some reason.
|
* should be used only when it's critical to stop the threads for some reason.
|
||||||
* Currently Redis does this only on crash (for instance on SIGSEGV) in order
|
* Currently Redis does this only on crash (for instance on SIGSEGV) in order
|
||||||
* to perform a fast memory check without other threads messing with memory. */
|
* to perform a fast memory check without other threads messing with memory. */
|
||||||
static void killThreads(void) {
|
void killThreads(void) {
|
||||||
killMainThread();
|
killMainThread();
|
||||||
bioKillThreads();
|
bioKillThreads();
|
||||||
killIOThreads();
|
killIOThreads();
|
||||||
|
@ -2467,6 +2467,7 @@ void mixDigest(unsigned char *digest, void *ptr, size_t len);
|
|||||||
void xorDigest(unsigned char *digest, void *ptr, size_t len);
|
void xorDigest(unsigned char *digest, void *ptr, size_t len);
|
||||||
int populateCommandTableParseFlags(struct redisCommand *c, char *strflags);
|
int populateCommandTableParseFlags(struct redisCommand *c, char *strflags);
|
||||||
void killIOThreads(void);
|
void killIOThreads(void);
|
||||||
|
void killThreads(void);
|
||||||
|
|
||||||
/* TLS stuff */
|
/* TLS stuff */
|
||||||
void tlsInit(void);
|
void tlsInit(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user