diff options
author | antirez <antirez@gmail.com> | 2014-11-14 17:13:35 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-11-14 17:13:35 +0100 |
commit | 620906693ee2e80f5b8ff835b7fa109b1ff22b63 (patch) | |
tree | 1ede5313089912c82aa1e446ff4522ee61592880 | |
parent | 8a75ec0fca824f789f578bffdfc897c4df1b5d2b (diff) | |
download | redis-620906693ee2e80f5b8ff835b7fa109b1ff22b63.tar.gz |
Fix non-linux builds error introduced with THP checks.
-rw-r--r-- | src/latency.c | 2 | ||||
-rw-r--r-- | src/zmalloc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/latency.c b/src/latency.c index 67eb593f7..9875aa164 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 e58353725..6df51a80f 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 |