Commit ead8e31b authored by antirez's avatar antirez
Browse files

Fix non-linux builds error introduced with THP checks.

parent 5d8c88fd
......@@ -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 --------------------------------- */
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment