mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Silence bogus GCC 7 warnings -Wimplicit-fallthrough
Do not silence uncertain cases, or fix any bugs. The only functional change should be that ha_federated::extra() is not calling DBUG_PRINT to report an unhandled case for HA_EXTRA_PREPARE_FOR_DROP.
This commit is contained in:
parent
492c1e4145
commit
7972da8aa1
61 changed files with 168 additions and 75 deletions
|
|
@ -1,6 +1,7 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Copyright (c) 1996, 2012, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2017, MariaDB Corporation.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -574,7 +575,8 @@ dtype_get_fixed_size_low(
|
|||
#else /* !UNIV_HOTBACKUP */
|
||||
return(len);
|
||||
#endif /* !UNIV_HOTBACKUP */
|
||||
/* fall through for variable-length charsets */
|
||||
/* Treat as variable-length. */
|
||||
/* Fall through */
|
||||
case DATA_VARCHAR:
|
||||
case DATA_BINARY:
|
||||
case DATA_DECIMAL:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Copyright (c) 1995, 2009, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2017, MariaDB Corporation.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -787,13 +788,13 @@ mach_swap_byte_order(
|
|||
dest += len;
|
||||
|
||||
switch (len & 0x7) {
|
||||
case 0: *--dest = *from++;
|
||||
case 7: *--dest = *from++;
|
||||
case 6: *--dest = *from++;
|
||||
case 5: *--dest = *from++;
|
||||
case 4: *--dest = *from++;
|
||||
case 3: *--dest = *from++;
|
||||
case 2: *--dest = *from++;
|
||||
case 0: *--dest = *from++; /* fall through */
|
||||
case 7: *--dest = *from++; /* fall through */
|
||||
case 6: *--dest = *from++; /* fall through */
|
||||
case 5: *--dest = *from++; /* fall through */
|
||||
case 4: *--dest = *from++; /* fall through */
|
||||
case 3: *--dest = *from++; /* fall through */
|
||||
case 2: *--dest = *from++; /* fall through */
|
||||
case 1: *--dest = *from;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Copyright (c) 1994, 2009, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2017, MariaDB Corporation.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -237,16 +238,22 @@ ut_fold_binary(
|
|||
switch (len & 0x7) {
|
||||
case 7:
|
||||
fold = ut_fold_ulint_pair(fold, (ulint)(*str++));
|
||||
/* fall through */
|
||||
case 6:
|
||||
fold = ut_fold_ulint_pair(fold, (ulint)(*str++));
|
||||
/* fall through */
|
||||
case 5:
|
||||
fold = ut_fold_ulint_pair(fold, (ulint)(*str++));
|
||||
/* fall through */
|
||||
case 4:
|
||||
fold = ut_fold_ulint_pair(fold, (ulint)(*str++));
|
||||
/* fall through */
|
||||
case 3:
|
||||
fold = ut_fold_ulint_pair(fold, (ulint)(*str++));
|
||||
/* fall through */
|
||||
case 2:
|
||||
fold = ut_fold_ulint_pair(fold, (ulint)(*str++));
|
||||
/* fall through */
|
||||
case 1:
|
||||
fold = ut_fold_ulint_pair(fold, (ulint)(*str++));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue