From 127e862029298c2ee0e5243c3abe4df26d863372 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 18 Feb 2017 11:28:07 -0500 Subject: use official API for unreachable C code (#3404) --- src/_cffi_src/openssl/src/osrandom_engine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/_cffi_src/openssl') diff --git a/src/_cffi_src/openssl/src/osrandom_engine.c b/src/_cffi_src/openssl/src/osrandom_engine.c index 52f55af8..f1cfcb67 100644 --- a/src/_cffi_src/openssl/src/osrandom_engine.c +++ b/src/_cffi_src/openssl/src/osrandom_engine.c @@ -335,7 +335,7 @@ static int osrandom_rand_bytes(unsigned char *buffer, int size) { } return 1; } - return 0; /* unreachable */ + __builtin_unreachable(); } static int osrandom_finish(ENGINE *e) { @@ -354,7 +354,7 @@ static int osrandom_rand_status(void) { case CRYPTOGRAPHY_OSRANDOM_GETRANDOM_WORKS: return 1; } - return 0; /* unreachable */ + __builtin_unreachable(); } static const char *osurandom_get_implementation(void) { @@ -368,7 +368,7 @@ static const char *osurandom_get_implementation(void) { case CRYPTOGRAPHY_OSRANDOM_GETRANDOM_WORKS: return "getrandom"; } - return ""; /* unreachable */ + __builtin_unreachable(); } #endif /* CRYPTOGRAPHY_OSRANDOM_ENGINE_GETRANDOM */ -- cgit v1.2.3