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:
Daniel Dai 2020-09-20 05:06:17 -04:00 committed by Oran Agra
parent e5e353c81d
commit aa1feec746
2 changed files with 3 additions and 2 deletions

View File

@ -1510,7 +1510,7 @@ int memtest_test_linux_anonymous_maps(void) {
closeDirectLogFiledes(fd);
return errors;
}
#endif
#endif /* HAVE_PROC_MAPS */
static void killMainThread(void) {
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.
* 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. */
static void killThreads(void) {
void killThreads(void) {
killMainThread();
bioKillThreads();
killIOThreads();

View File

@ -2467,6 +2467,7 @@ void mixDigest(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);
void killIOThreads(void);
void killThreads(void);
/* TLS stuff */
void tlsInit(void);