]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/CMakeLists.txt: add -Wno-vla-cxx-extension to clang
authorMatan Breizman <mbreizma@redhat.com>
Mon, 17 Feb 2025 07:39:19 +0000 (07:39 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 20 Feb 2025 14:27:33 +0000 (14:27 +0000)
commit88845c2ae23e9ee5482506e582fe881ec0d4d934
tree6b8293a36035c4dee8d0e07e5a251372aeea1cde
parent0e5a51b6b8aefa7647ca753e76d35851a6c4687a
src/CMakeLists.txt: add -Wno-vla-cxx-extension to clang

The following warning of:
```
error: variable length arrays in C++ are a Clang extension
[-Werror,-Wvla-cxx-extension]
```
is enabled by default in clang 18 and above.
Disable it in our builds due to large anmount of warnings.
We can revert this once we handle some of the warnings in future PRs.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/CMakeLists.txt