From fa32c8f9fd897073f32205587ade4aaca7f8a7a9 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sun, 23 Feb 2020 05:49:51 +0100 Subject: 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). --- irmp/irmp.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3-70-g09d2