Commit aa1feec7 authored by Daniel Dai's avatar Daniel Dai Committed by Oran Agra
Browse files

fix make warnings in debug.c MacOS (#7805)


Co-authored-by: default avatarOran Agra <oran@redislabs.com>
(cherry picked from commit 1b3b7520)
parent e5e353c8
...@@ -1510,7 +1510,7 @@ int memtest_test_linux_anonymous_maps(void) { ...@@ -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) { ...@@ -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); ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment