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>
-Wno-gnu-designator
-Wno-missing-braces
-Wno-parentheses
- -Wno-deprecated-register)
+ -Wno-deprecated-register
+ -Wno-vla-cxx-extension)
if(FREEBSD)
# Need to use the GNU binutils linker to get versioning right.
string(APPEND CMAKE_EXE_LINKER_FLAGS " -fuse-ld=/usr/local/bin/ld -Wno-unused-command-line-argument")