summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/latency.c2
-rw-r--r--src/zmalloc.c2
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