]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Move a fall through comment
authorMatt Caswell <matt@openssl.org>
Tue, 11 Jun 2019 12:27:45 +0000 (13:27 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 11 Jun 2019 14:21:39 +0000 (15:21 +0100)
When compiling with --strict-warnings using gcc 7.4.0 the compiler
complains that a case falls through, even though there is an explicit
comment stating this. Moving the comment outside of the conditional
compilation section resolves this.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9131)

crypto/bio/b_addr.c

index 261d439f63d971323e3f4e6b8ce5da09ccd71b18..d7fcf2fcb5416c85e6ebb6246fcc45492364cd9f 100644 (file)
@@ -718,8 +718,8 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
                 hints.ai_flags &= ~AI_ADDRCONFIG;
                 goto retry;
             }
-            /* fall through */
 # endif
+            /* fall through */
         default:
             BIOerr(BIO_F_BIO_LOOKUP_EX, ERR_R_SYS_LIB);
             ERR_add_error_data(1, gai_strerror(gai_ret));