diff options
author | stephan <stephan@noemail.net> | 2023-01-11 22:45:20 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-01-11 22:45:20 +0000 |
commit | a7c498599f917607542bcd7003c445723aba9127 (patch) | |
tree | e96d905dffd46e39667d019e1f2cc8a4a31358ff /ext/misc/base64.c | |
parent | 60a1a0f7df99e03bba7abc45f526e372c20d2fdc (diff) | |
parent | 8518eaccd79ae83a55fad3c3fa545beb16fb127c (diff) | |
download | sqlite-a7c498599f917607542bcd7003c445723aba9127.tar.gz sqlite-a7c498599f917607542bcd7003c445723aba9127.zip |
Merge trunk into wasi-patches branch and add missing yes/no result to the configure script's output for the --with-wasi-sdk=PATH test.
FossilOrigin-Name: adc0ede0a43241b85563408d0de8e640a75ec4f7bdfe5e48acc5cdd6b182b88c
Diffstat (limited to 'ext/misc/base64.c')
-rwxr-xr-x | ext/misc/base64.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ext/misc/base64.c b/ext/misc/base64.c index 20297367e..69eff6181 100755 --- a/ext/misc/base64.c +++ b/ext/misc/base64.c @@ -55,6 +55,15 @@ #include "sqlite3ext.h" +#ifndef deliberate_fall_through +/* Quiet some compilers about some of our intentional code. */ +# if GCC_VERSION>=7000000 +# define deliberate_fall_through __attribute__((fallthrough)); +# else +# define deliberate_fall_through +# endif +#endif + SQLITE_EXTENSION_INIT1; #define PC 0x80 /* pad character */ @@ -165,15 +174,15 @@ static u8* fromBase64( char *pIn, int ncIn, u8 *pOut ){ case ND: /* Treat dark non-digits as pad, but they terminate decode too. */ ncIn = 0; - /* fall thru */ + deliberate_fall_through; case WS: /* Treat whitespace as pad and terminate this group.*/ nti = nac; - /* fall thru */ + deliberate_fall_through; case PC: bdp = 0; --nbo; - /* fall thru */ + deliberate_fall_through; default: /* bdp is the digit value. */ qv = qv<<6 | bdp; break; |