Fix a couple of pedantic warnings
commit0889dd147db3c43b0434ee8a09fcb66a98ce4f11
authorJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 21 Aug 2014 00:43:06 +0000 (20 20:43 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 21 Aug 2014 00:43:06 +0000 (20 20:43 -0400)
tree1e20c897e66f13629511122e34faf1b2f691a5c0
parent6f88af16ae60815784b1fefb7d5c4da0183cf7fd
Fix a couple of pedantic warnings

This addresses the following type warnings emitted by clang:

 1) src/watch.c:192:2: warning: void function 'watch_apply' should not return void expression [-Wpedantic]
        return watch_apply_changes(source, WATCH_EVENT_LOAD, changed);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 2) include/tig/keys.h:57:6: warning: ISO C forbids forward references to 'enum' types [-Wpedantic]
    enum status_code get_key_value(const char **name, struct key *key);
         ^

The warnings was emitted when executing the following command:

 > make clean all CFLAGS="-Wpedantic -Wno-extra-semi -Wno-variadic-macros -Wno-gnu-empty-initializer"
include/tig/keys.h
include/tig/refdb.h
src/keys.c
src/parse.c
src/refdb.c
src/watch.c