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 <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/crypto/fipsmodule/bcm.c b/crypto/fipsmodule/bcm.c
index caa79d4..76fbae3 100644
--- a/crypto/fipsmodule/bcm.c
+++ b/crypto/fipsmodule/bcm.c
@@ -297,9 +297,8 @@
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)