diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-02-23 05:49:51 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 15:26:16 +0200 |
commit | fa32c8f9fd897073f32205587ade4aaca7f8a7a9 (patch) | |
tree | 104108ea4e5aa316f55eb4a56eafb3b211bee62e /irmp | |
parent | a9f2b88c3f74e0b776bfaee56402bb7682026a64 (diff) | |
download | libsigrokdecode-fa32c8f9fd897073f32205587ade4aaca7f8a7a9.tar.gz libsigrokdecode-fa32c8f9fd897073f32205587ade4aaca7f8a7a9.zip |
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).
Diffstat (limited to 'irmp')
-rw-r--r-- | irmp/irmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |