From 081c2dc3d8dd768aa17cea66584af55d744b6662 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 14 May 2015 11:25:10 -0400 Subject: [PATCH] stat: add comment on why we need return Signed-off-by: Jens Axboe --- stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stat.c b/stat.c index 785a73dd..7d6ee63d 100644 --- a/stat.c +++ b/stat.c @@ -510,6 +510,7 @@ 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; } -- 2.25.1