mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-01 03:24:41 +01:00
2e68b88be8
We need to hand -s to both header and body generation, or neither: wire/gen_peer_wire.c:53:13: error: static declaration of ‘towire_channel_update_timestamps’ follows non-static declaration In file included from wire/gen_peer_wire.c:5: ./wire/gen_peer_wire.h:78:6: note: previous declaration of ‘towire_channel_update_timestamps’ was here We also need it for printwire, otherwise we get static unused functions for subtypes: devtools/gen_print_wire.c:155:13: error: ‘printwire_channel_update_checksums’ defined but not used [-Werror=unused-function] static void printwire_channel_update_checksums(const char *fieldname, const u8 **cursor, size_t *plen) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devtools/gen_print_wire.c:133:13: error: ‘printwire_channel_update_timestamps’ defined but not used [-Werror=unused-function] static void printwire_channel_update_timestamps(const char *fieldname, const u8 **cursor, size_t *plen) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
---|---|---|
.. | ||
header_template | ||
impl_template | ||
print_header_template | ||
print_impl_template |