From 48e75928013c286b3f2956edcf238201b304fe4e Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 11 Oct 2025 13:59:54 +0900 Subject: [PATCH] mruby-bigint: fix clang warning for struct initialization add extra braces for nested struct initialization to satisfy clang's -Wmissing-braces warning. Co-authored-by: Claude --- mrbgems/mruby-bigint/core/bigint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-bigint/core/bigint.c b/mrbgems/mruby-bigint/core/bigint.c index 4b5597070..6d80bca7e 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -51,7 +51,7 @@ typedef struct mpz_context { /* Convenience macros for context creation */ #define MPZ_CTX_INIT(mrb_ptr, ctx, pool_ptr) \ - mpz_pool_t pool ## _storage = {0};\ + mpz_pool_t pool ## _storage = {{0}};\ mpz_pool_t *pool_ptr = &pool ## _storage;\ mpz_ctx_t ctx ## _struct = ((mpz_ctx_t){.mrb = (mrb_ptr), .pool = (pool_ptr)}); \ mpz_ctx_t *ctx = &(ctx ## _struct);