gettext
d2293e7a - gettext.h: Avoid "warning: ISO C++ forbids variable length array" with -pedantic.

Commit
67 days ago
gettext.h: Avoid "warning: ISO C++ forbids variable length array" with -pedantic. Both "g++ -pedantic" and "clang++ -pedantic" warn about use of VLAs. Since we cannot distinguish "g++" from "g++ -pedantic" through a preprocessor macro, it's best to not use a VLA in C++. Reported by Jens Seidel <jensseidel@users.sf.net> via <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547798> at <https://savannah.gnu.org/bugs/index.php?55149>. * gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0 in C++ mode.
Author
Parents
Loading