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

Co-authored-by: Oran Agra <oran@redislabs.com>
(cherry picked from commit 6d46a8e2163750f707f9d36889d5fdf514132a69)
This commit is contained in:
Daniel Dai 2020-09-20 05:06:17 -04:00 committed by Oran Agra
parent 57e1dbff57
commit 064992af62
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);