Fix warning from gmake on BSD
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 14 May 2015 00:36:40 +0000 (09:36 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 14 May 2015 03:03:47 +0000 (12:03 +0900)
stat.c: In function 'block_state_category':
stat.c:514:1: warning: control reaches end of non-void function
[-Wreturn-type]
 }

stat.c

diff --git a/stat.c b/stat.c
index 9a30bea4d01cf57a710ed8277b23ec336ea3c0d8..785a73ddf2ac29168aeced4ee27e6554bc1915ef 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -511,6 +511,7 @@ static int block_state_category(int block_state)
                return 2;
        default:
                assert(0);
                return 2;
        default:
                assert(0);
+               return -1;
        }
 }
 
        }
 }