stat: add comment on why we need return
authorJens Axboe <axboe@fb.com>
Thu, 14 May 2015 15:25:10 +0000 (11:25 -0400)
committerJens Axboe <axboe@fb.com>
Thu, 14 May 2015 15:25:10 +0000 (11:25 -0400)
Signed-off-by: Jens Axboe <axboe@fb.com>
stat.c

diff --git a/stat.c b/stat.c
index 785a73ddf2ac29168aeced4ee27e6554bc1915ef..7d6ee63dc2dd3dac9faddaeb96da5e34d0a72713 100644 (file)
--- 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;
        }