From 0fa69a511c7df60f6d28bd91cc158e354b67faee Mon Sep 17 00:00:00 2001 From: xzyfer Date: Thu, 26 Jul 2018 18:41:14 +1000 Subject: [PATCH] Fix -Wmissing-declarations for gcc < 7 See https://stackoverflow.com/a/48702576/233633 Fixes #2690 --- src/cencode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cencode.c b/src/cencode.c index 00ac24e281..9109f4b225 100644 --- a/src/cencode.c +++ b/src/cencode.c @@ -47,7 +47,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out, *codechar++ = base64_encode_value(result); result = (fragment & 0x003) << 4; #ifndef _MSC_VER - __attribute__ ((fallthrough)); + /* fall through */ #endif case step_B: if (plainchar == plaintextend) @@ -61,7 +61,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out, *codechar++ = base64_encode_value(result); result = (fragment & 0x00f) << 2; #ifndef _MSC_VER - __attribute__ ((fallthrough)); + /* fall through */ #endif case step_C: if (plainchar == plaintextend)