From 204b8a115d3bb014cbfd25c987dda63e42b0322b Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Thu, 8 Jun 2017 14:39:49 -0700 Subject: [PATCH] Tag the power-on tests as a constructor function directly. This matches the example code in IG 9.10. Change-Id: Ie010d135d6c30acb9248b689302b0a27d65bc4f7 Reviewed-on: https://boringssl-review.googlesource.com/17006 Commit-Queue: Adam Langley Commit-Queue: David Benjamin Reviewed-by: David Benjamin --- crypto/fipsmodule/bcm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crypto/fipsmodule/bcm.c b/crypto/fipsmodule/bcm.c index caa79d467..76fbae307 100644 --- a/crypto/fipsmodule/bcm.c +++ b/crypto/fipsmodule/bcm.c @@ -297,9 +297,8 @@ extern const uint8_t BORINGSSL_bcm_text_end[]; extern const uint8_t BORINGSSL_bcm_text_hash[]; #endif -static void BORINGSSL_bcm_power_on_self_test(void) __attribute__((constructor)); - -static void BORINGSSL_bcm_power_on_self_test(void) { +static void __attribute__((constructor)) +BORINGSSL_bcm_power_on_self_test(void) { CRYPTO_library_init(); #if !defined(OPENSSL_ASAN)