commit-slab: declare functions "static inline" · destenson/git--git@e9e03a7 · GitHub
Skip to content

Commit e9e03a7

Browse files
trastgitster
authored andcommitted
commit-slab: declare functions "static inline"
This shuts up compiler warnings about unused functions. No such warnings are currently triggered, but if someone were to actually use init_NAME_with_stride() as documented, they would get a warning about init_NAME() being unused. While there, write a comment about why the last real declaration of the variable is without a terminating semicolon, while another forward declarations have one. Signed-off-by: Thomas Rast <tr@thomasrast.ch> Helped-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent dcbbc8f commit e9e03a7

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

commit-slab.h

Lines changed: 20 additions & 6 deletions

0 commit comments

Comments
 (0)