diff options
author | Toni <matzeton@googlemail.com> | 2024-04-03 14:10:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 14:10:21 +0200 |
commit | 41eef9246c6a3055e3876e3dd7aeaadecb4b76c0 (patch) | |
tree | 275c7300abf2233e8d89896a3a888ada01fef4bb /src/lib/protocols/btlib.c | |
parent | b5e8bc22147d37011621ae62b680742c8fa105dc (diff) |
Disable `-Wno-unused-parameter -Wno-unused-function`. (#2358)
* unused parameters and functions pollute the code and decrease readability
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/btlib.c')
-rw-r--r-- | src/lib/protocols/btlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/protocols/btlib.c b/src/lib/protocols/btlib.c index 7223167e8..ae3c1e365 100644 --- a/src/lib/protocols/btlib.c +++ b/src/lib/protocols/btlib.c @@ -154,7 +154,7 @@ static void print_safe_str(char *msg,bt_parse_data_cb_t *cbd) { #define STREQ(a,b) !strcmp(a,b) -void cb_data(bt_parse_data_cb_t *cbd,int *ret) { +void cb_data(bt_parse_data_cb_t *cbd) { struct bt_parse_protocol *p = &(cbd->p); const u_int8_t *s; const char *ss; @@ -432,7 +432,7 @@ const u_int8_t *bt_decode(const u_int8_t *b, size_t *l, int *ret, bt_parse_data_ do { b = bt_decode(b,l,ret,cbd); if(*ret < 0 || *l == 0) goto bad_data; - cb_data(cbd,ret); + cb_data(cbd); if(*ret < 0) goto bad_data; cbd->t = 0; } while (*b != 'e' && *l != 0); @@ -455,7 +455,7 @@ const u_int8_t *bt_decode(const u_int8_t *b, size_t *l, int *ret, bt_parse_data_ } b = bt_decode(b,l,ret,cbd); if(*ret < 0 || *l == 0) goto bad_data; - cb_data(cbd,ret); + cb_data(cbd); if(*ret < 0) goto bad_data; cbd->t = 0; *ls = 0; |