Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Feb 2024 13:25:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276804] devel/bossa: fix build with clang 18
Message-ID:  <bug-276804-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276804

            Bug ID: 276804
           Summary: devel/bossa: fix build with clang 18
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kevans@freebsd.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(kevans@freebsd.org)
          Assignee: kevans@freebsd.org

Clang 18 has a new warning about variable length arrays used in C++,
which is emitted when building devel/bossa:

  src/Flasher.cpp:115:28: error: variable length arrays in C++ are a Clang
extension [-Werror,-Wvla-cxx-extension]
    115 |             uint8_t buffer[bufferSize];
        |                            ^~~~~~~~~~
  src/Flasher.cpp:115:28: note: read of non-const variable 'bufferSize' is =
not
allowed in a constant expression
  src/Flasher.cpp:114:22: note: declared here
    114 |             uint32_t bufferSize =3D _samba.writeBufferSize();
        |                      ^
  [... more of these ...]

Since refactoring the code to no longer use VLAs is rather intrusive,
suppress the warnings instead.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276804-7788>