init: automate displaying debug categories
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index d143d36c0c60ed1d5d6c1bca6b1aa27bd86c9212..7d6ee63dc2dd3dac9faddaeb96da5e34d0a72713 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -13,6 +13,7 @@
 #include "json.h"
 #include "lib/getrusage.h"
 #include "idletime.h"
+#include "lib/pow2.h"
 
 struct fio_mutex *stat_mutex;
 
@@ -509,7 +510,9 @@ static int block_state_category(int block_state)
        case BLOCK_STATE_TRIM_FAILURE:
                return 2;
        default:
+               /* Silence compile warning on some BSDs and have a return */
                assert(0);
+               return -1;
        }
 }