From 99e2d5be0dba938b7701d157cba86252db9eb61c Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Sun, 2 May 2021 20:02:12 +0000 Subject: [PATCH] Avoids a missing brace warning in schnorrsig/tests_impl.h on old compilers. GCC 4.9.2, at least, emits "warning: missing braces around initializer" without this. --- src/modules/schnorrsig/tests_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/schnorrsig/tests_impl.h b/src/modules/schnorrsig/tests_impl.h index 338462fc9dfb9..6f960cf6a86ae 100644 --- a/src/modules/schnorrsig/tests_impl.h +++ b/src/modules/schnorrsig/tests_impl.h @@ -103,7 +103,7 @@ void test_schnorrsig_api(void) { unsigned char sk3[32]; unsigned char msg[32]; secp256k1_keypair keypairs[3]; - secp256k1_keypair invalid_keypair = { 0 }; + secp256k1_keypair invalid_keypair = {{ 0 }}; secp256k1_xonly_pubkey pk[3]; secp256k1_xonly_pubkey zero_pk; unsigned char sig[64];