[Bug 197284] comms/hcidump fails compilation on gcc48 due to unused-variable "error"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 3 00:38:19 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197284

            Bug ID: 197284
           Summary: comms/hcidump fails compilation on gcc48 due to
                    unused-variable "error"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: dewayne at heuristicsystems.com.au

Created attachment 152505
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152505&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list