-
Notifications
You must be signed in to change notification settings - Fork 32
Description
./deps/raft/raft_server.c: In function 'raft_remove_node':
../deps/raft/raft_server.c:732:5: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; inum_nodes; i++)
^
../deps/raft/raft_server.c:732:5: note: use option -std=c99 or -std=gnu99 to compile your code
../deps/lmdb_helpers/lmdb_helpers.c: In function 'mdb_drop_dbs':
../deps/lmdb_helpers/lmdb_helpers.c:272:5: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < ndbs; i++)
^
../deps/lmdb_helpers/lmdb_helpers.c:272:5: note: use option -std=c99 or -std=gnu99 to compile your code
../deps/lmdb_helpers/lmdb_helpers.c:283:14: error: redefinition of 'i'
for (int i = 0; i < ndbs; i++)
^
../deps/lmdb_helpers/lmdb_helpers.c:272:14: note: previous definition of 'i' was here
for (int i = 0; i < ndbs; i++)
^
../deps/lmdb_helpers/lmdb_helpers.c:283:5: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < ndbs; i++)
^
../src/main.c:85:10: error: variably modified 'leader_host' at file scope
char leader_host[IP_STR_LEN];
^
../src/main.c:94:10: error: variably modified 'host' at file scope
char host[IP_STR_LEN];
^
../src/main.c: In function '__start_http_socket':
../src/main.c:1430:5: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < HTTP_WORKERS; i++)
^
../src/main.c:1430:5: note: use option -std=c99 or -std=gnu99 to compile your code
../src/main.c: In function 'main':
../src/main.c:1579:13: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i=0; i<raft_get_num_nodes(sv->raft); i++)
^
../src/main.c:1591:1: error: control reaches end of non-void function [-Werror=return-type]
}
^