From: Gerhard Sittig Date: Sun, 23 Feb 2020 04:49:51 +0000 (+0100) Subject: irmp: silence missing prototype compiler warning X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fa32c8f9fd897073f32205587ade4aaca7f8a7a9;p=libsigrokdecode.git irmp: silence missing prototype compiler warning The sigrok project enforces warnings when public routines of compile units lack prototypes. Add a prototype for the irmp.c:print_spectrum() routine to silence a compiler warning. An alternative would have been to mark the routine as static (it's exclusively used within the same file). --- diff --git a/irmp/irmp.c b/irmp/irmp.c index c7a2fd9..61711e5 100644 --- a/irmp/irmp.c +++ b/irmp/irmp.c @@ -5554,6 +5554,7 @@ printf ("fm: %d %d\n", irmp_pulse_time * 1000000 / F_INTERRUPTS, RCII_BIT_LEN * *--------------------------------------------------------------------------------------------------------------------------------------------------- */ +void print_spectrum (char * text, int * buf, int is_pulse); void print_spectrum (char * text, int * buf, int is_pulse) {