diff --git a/src/latency.c b/src/latency.c index 67eb593f7f867fe201760f565545b570ef5722e3..9875aa164964ee877c9f8bfa405738c72e3aea98 100644 --- a/src/latency.c +++ b/src/latency.c @@ -73,6 +73,7 @@ int THPIsEnabled(void) { fclose(fp); return (strstr(buf,"[never]") == NULL) ? 1 : 0; } +#endif /* Report the amount of AnonHugePages in smap, in bytes. If the return * value of the function is non-zero, the process is being targeted by @@ -80,7 +81,6 @@ int THPIsEnabled(void) { int THPGetAnonHugePagesSize(void) { return zmalloc_get_smap_bytes_by_field("AnonHugePages:"); } -#endif /* ---------------------------- Latency API --------------------------------- */ diff --git a/src/zmalloc.c b/src/zmalloc.c index e583537259bf3361bbc9a607d5fc2a1fee14494f..6df51a80f66759020d34bf8b918b7a794d4cff32 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -356,7 +356,7 @@ size_t zmalloc_get_smap_bytes_by_field(char *field) { } #else size_t zmalloc_get_smap_bytes_by_field(char *field) { - REDIS_NOTUSED(field); + ((void) field); return 0; } #endif