diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2015-02-20 17:16:12 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2015-02-20 17:16:12 +0000 |
commit | 18321e192f90a068c9e579251d15a770f50283ac (patch) | |
tree | af592f4123824096d0a054972bebe2b713938fa5 /comms/hcidump | |
parent | cc33b4c3c2bd1752ff89ef15f97ee15ec5548651 (diff) |
Improve previous commit: Fix unused bug and disable Werror while here
Suggested by: marino
Notes
Notes:
svn path=/head/; revision=379452
Diffstat (limited to 'comms/hcidump')
-rw-r--r-- | comms/hcidump/files/patch-parser-Makefile | 2 | ||||
-rw-r--r-- | comms/hcidump/files/patch-parser-rfcomm.c | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/comms/hcidump/files/patch-parser-Makefile b/comms/hcidump/files/patch-parser-Makefile index d980f82c6a69..99bf46acbe4c 100644 --- a/comms/hcidump/files/patch-parser-Makefile +++ b/comms/hcidump/files/patch-parser-Makefile @@ -6,7 +6,7 @@ WARNS?= 2 -DEBUG_FLAGS= -g -CFLAGS= -O2 -+CWARNFLAGS+= -Wno-unused ++NO_WERROR= yes +CFLAGS?= -O2 NOPROFILE= 1 diff --git a/comms/hcidump/files/patch-parser-rfcomm.c b/comms/hcidump/files/patch-parser-rfcomm.c new file mode 100644 index 000000000000..ee25046b58ec --- /dev/null +++ b/comms/hcidump/files/patch-parser-rfcomm.c @@ -0,0 +1,16 @@ +--- parser/rfcomm.c.orig 2015-02-03 11:27:57.000000000 +1100 ++++ parser/rfcomm.c 2015-02-03 11:28:26.000000000 +1100 +@@ -49,11 +49,11 @@ + address_field addr = head->addr; + uint8_t ctr = head->control; + uint16_t ilen = head->length.bits.len; +- uint8_t ctr_type,pf,dlci,fcs; ++ uint8_t pf,dlci,fcs; + + dlci = GET_DLCI(addr); + pf = GET_PF(ctr); +- ctr_type = CLR_PF(ctr); ++/* ctr_type = CLR_PF(ctr); */ + fcs = *(ptr + len - 1); + + printf("cr %d dlci %d pf %d ilen %d fcs 0x%x ", addr.cr, dlci, pf, ilen, fcs); |