Created attachment 152505 [details] Patch removes unused ctr_type from print_rfcomm_hdr Compiling this port on 10.1Stable using gcc48 results in this error: /usr/local/libexec/ccache/gcc48 -O2 -pipe -g0 -ggdb0 -DSTRIP_FBSDID -UDEBUGGING -UEBUGGING -UDEBUG -Wno-error -march=prescott -mtune=prescott -fno-strict-aliasing -g0 -march=prescott -mtune=prescott -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c sdp.c -o sdp.o --- rfcomm.o --- rfcomm.c: In function 'print_rfcomm_hdr': rfcomm.c:52:20: error: unused variable 'ctr_type' [-Werror=unused-variable] uint8_t ctr_type,pf,dlci,fcs; ^ cc1: all warnings being treated as errors *** [rfcomm.o] Error code 1 The enclosed patch rectifies the problem.
Can you provide a patch to remove -Werror?
A commit references this bug: Author: arved Date: Fri Feb 20 16:25:33 UTC 2015 New revision: 379445 URL: https://svnweb.freebsd.org/changeset/ports/379445 Log: Add -Wno-unused to prevent Werror from triggering with gcc48 PR: 197284 Submitted by: dewayne@heuristicsystems.com.au Changes: head/comms/hcidump/files/patch-parser-Makefile
a fix has been committed, thanks for reporting
The attached better is a better fix that adding the warning. The patch fixes the problem! And neither the patch nor the commit remove -Werror, which should go!
I meant "the attached patch is a better fix"
thanks. :)