[Bug 271707] multimedia/vdr: fix build with clang 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 May 2023 14:10:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271707

            Bug ID: 271707
           Summary: multimedia/vdr: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org

Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because multimedia/vdr's Makefile does not explicitly set its C++
standard, this leads to an error:

  util.c:269:4: error: ISO C++17 does not allow 'register' storage class
specifier [-Wregister]
     register int i;
     ^~~~~~~~~

Because the port's own Makefile is rather non-standard it does not
respect USE_CXXSTD=, so patch away the 'register' keyword instead.

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