I observed the following build warnings when compiling libmongocrypt with PHP:
/home/jmikola/workspace/mongodb/phpc/src/libmongocrypt/src/mongocrypt-traverse-util.c: In function ‘_mongocrypt_transform_binary_in_bson’: /home/jmikola/workspace/mongodb/phpc/src/libmongocrypt/src/mongocrypt-traverse-util.c:172:38: warning: missing braces around initializer [-Wmissing-braces] _recurse_state_t starting_state = {ctx, ^ /home/jmikola/workspace/mongodb/phpc/src/libmongocrypt/src/mongocrypt-traverse-util.c:180:39: 0}; {} /home/jmikola/workspace/mongodb/phpc/src/libmongocrypt/src/mongocrypt-traverse-util.c: In function ‘_mongocrypt_traverse_binary_in_bson’: /home/jmikola/workspace/mongodb/phpc/src/libmongocrypt/src/mongocrypt-traverse-util.c:205:38: warning: missing braces around initializer [-Wmissing-braces] _recurse_state_t starting_state = {ctx, ^ /home/jmikola/workspace/mongodb/phpc/src/libmongocrypt/src/mongocrypt-traverse-util.c:213:39: 0}; {}
- is duplicated by
-
MONGOCRYPT-237 "missing braces around initializer" warning when compiling mongocrypt-traverse-util.c
- Closed
- related to
-
PHPC-1621 Bundled libmongocrypt emits compiler warning
- Closed