Skip to content

Commit

Permalink
MDEV-26443 HAVE_C99_INITIALIZERS is not applicable to C++
Browse files Browse the repository at this point in the history
Designated initializers were introduced in ISO/IEC 9899:1999 (C99),
but the C code base of MariaDB is supposed to be compatible with the
1990 version of the standard.

The InnoDB code based was switched from C to C++ in
MySQL 5.6 and MariaDB 10.0. C++ did not introduce syntax for
designated initializers until ISO/IEC 14882:2020.
Our C++ code base is still stuck with the 2011 or earlier version of
that standard.

Therefore, this check as well as the macro STRUCT_FLD are best removed.
  • Loading branch information
dr-m committed Aug 20, 2021
1 parent 15ac6c5 commit 0b2241a
Show file tree
Hide file tree
Showing 3 changed files with 1,017 additions and 2,581 deletions.
Loading

0 comments on commit 0b2241a

Please sign in to comment.