Missing field initialisers failing build

Description

In the integrated Percona Server tree:
cmake ../mysql-server/ -DBUILD_CONFIG=mysql_release -DWITH_DEBUG=ON
...
make
...
[ 64%] Building CXX object storage/tokudb/PerconaFT/ft/CMakeFiles/ft_static.dir/logger/recover.cc.o
/Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/logger/recover.cc:732:76: error: missing field 'last_total' initializer [-Werror,-Wmissing-field-initializers]
toku_txn_progress_extra extra = { time(NULL), l->lsn, "commit", l->xid };
^
/Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/logger/recover.cc:775:75: error: missing field 'last_total' initializer [-Werror,-Wmissing-field-initializers]
toku_txn_progress_extra extra = { time(NULL), l->lsn, "abort", l->xid };
^
/Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/logger/recover.cc:1310:86: error: missing field 'last_total' initializer [-Werror,-Wmissing-field-initializers]
toku_txn_progress_extra extra = { time(NULL), ZERO_LSN, "abort live", txn->txnid };
^
3 errors generated.

Environment

None

Activity

Show:
Laurynas Biveinis
September 10, 2015, 7:51 AM

This has caused

George Lorch
September 9, 2015, 2:20 PM
Laurynas Biveinis
September 9, 2015, 10:58 AM
Laurynas Biveinis
September 9, 2015, 10:00 AM

[ 63%] Building CXX object storage/tokudb/PerconaFT/ft/CMakeFiles/ft_static.dir/txn/txn.cc.o
/Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/txn/txn.cc:248:21: error: missing field 'gtrid_length' initializer [-Werror,-Wmissing-field-initializers]
.xa_xid = {0},
^
/Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/txn/txn.cc:251:21: error: missing field '__opaque' initializer [-Werror,-Wmissing-field-initializers]
.txn_lock = ZERO_MUTEX_INITIALIZER,
^
/Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/portability/toku_pthread.h:80:36: note: expanded from macro 'ZERO_MUTEX_INITIALIZER'

  1. define ZERO_MUTEX_INITIALIZER 0
    ^
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/txn/txn.cc:251:21: error: missing field 'owner' initializer [-Werror,-Wmissing-field-initializers]
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/portability/toku_pthread.h:80:37: note: expanded from macro 'ZERO_MUTEX_INITIALIZER'

  2. define ZERO_MUTEX_INITIALIZER 0
    ^
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/txn/txn.cc:254:23: error: missing field '__opaque' initializer [-Werror,-Wmissing-field-initializers]
    .state_lock = ZERO_MUTEX_INITIALIZER,
    ^
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/portability/toku_pthread.h:80:36: note: expanded from macro 'ZERO_MUTEX_INITIALIZER'

  3. define ZERO_MUTEX_INITIALIZER 0
    ^
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/txn/txn.cc:254:23: error: missing field 'owner' initializer [-Werror,-Wmissing-field-initializers]
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/portability/toku_pthread.h:80:37: note: expanded from macro 'ZERO_MUTEX_INITIALIZER'

  4. define ZERO_MUTEX_INITIALIZER 0
    ^
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/txn/txn.cc:255:23: error: missing field '__opaque' initializer [-Werror,-Wmissing-field-initializers]
    .state_cond = ZERO_COND_INITIALIZER,
    ^
    /Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/portability/toku_pthread.h:231:35: note: expanded from macro 'ZERO_COND_INITIALIZER'

  5. define ZERO_COND_INITIALIZER 0

Laurynas Biveinis
September 9, 2015, 9:59 AM

64%] Building CXX object storage/tokudb/PerconaFT/ft/CMakeFiles/ft_static.dir/serialize/ft_node-serialize.cc.o
/Users/laurynas/percona/mysql-server/storage/tokudb/PerconaFT/ft/serialize/ft_node-serialize.cc:591:72: error: missing field 'prev' initializer [-Werror,-Wmissing-field-initializers]
work[i] = (struct serialize_compress_work) { .base = NULL,
^

Fixed

Assignee

Unassigned

Reporter

Laurynas Biveinis

Labels

None

External issue ID

None

Freshdesk Tickets

None

Fix versions

Priority

Major