-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISO C++ forbids flexible array member ‘literals’ #96
Comments
Have you seen the comment in lines 105..111 of
I am building Cadical using
in your |
@a1880 I was able to get it to compile by removing |
Same here (gcc 12 and gcc 14). Can you share what you are compiling and how? |
@m-fleury In my OP, I give one example that throws this warning: compiling My |
We do not support cmake. I tried
and besides warning in mobical, I did not get any warning. |
Can you try first with '-DNFLEXIBLE'? BTW, the idea is to split this into CXX and CXXFLAGS
In 'configure' there is code to check for that. And that should avoid this issue and if the above worked I wonder, why it apparently did not in your case. |
@arminbiere Yes, that gets rid of the warnings: enumeration value ‘…’ not handled in switch [-Wswitch-enum]
|
What about no doing '-Wswitch-enum'? |
The warnings are really spurious (as there is an explicit 'default'):
There is an easy way to squelch them by casting as |
I get tons of
ISO C++ forbids flexible array member ‘literals’
warnings when building 1.9.5 or 2.0.0-rc.6.For example:
My GCC version:
$ g++ -v Lecture des spécifications à partir de /usr/lib64/gcc/x86_64-slackware-linux/13.2.0/specs COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/13.2.0/lto-wrapper Cible : x86_64-slackware-linux Configuré avec: ../gcc-13.2.0/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++ --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --disable-libstdcxx-pch --disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp --enable-gnu-unique-object --enable-plugin --enable-lto --disable-install-libiberty --enable-gnu-indirect-function --with-linker-hash-style=gnu --with-gnu-ld --with-isl --verbose --with-arch-directory=amd64 --disable-gtktest --disable-werror --enable-clocale=gnu --enable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux Modèle de thread: posix Algorithmes de compression LTO supportés: zlib zstd gcc version 13.2.0 (GCC)
The text was updated successfully, but these errors were encountered: