Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
da2a8386
Commit
da2a8386
authored
Jul 19, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12824 GCC 7 warning: this statement may fall through [-Wimplicit-fallthrough=]
parent
2f07709a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
3 deletions
+12
-3
sql-common/client.c
sql-common/client.c
+1
-0
sql/item_func.cc
sql/item_func.cc
+3
-2
sql/log.cc
sql/log.cc
+1
-1
sql/sql_repl.cc
sql/sql_repl.cc
+1
-0
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+2
-0
storage/federatedx/ha_federatedx.cc
storage/federatedx/ha_federatedx.cc
+2
-0
storage/heap/hp_extra.c
storage/heap/hp_extra.c
+1
-0
storage/maria/ma_key_recover.c
storage/maria/ma_key_recover.c
+1
-0
No files found.
sql-common/client.c
View file @
da2a8386
...
...
@@ -1148,6 +1148,7 @@ void mysql_read_default_options(struct st_mysql_options *options,
break
;
case
OPT_pipe
:
options
->
protocol
=
MYSQL_PROTOCOL_PIPE
;
break
;
case
OPT_connect_timeout
:
case
OPT_timeout
:
if
(
opt_arg
)
...
...
sql/item_func.cc
View file @
da2a8386
...
...
@@ -848,8 +848,9 @@ void Item_func_num1::fix_length_and_dec()
{
DBUG_ENTER
(
"Item_func_num1::fix_length_and_dec"
);
DBUG_PRINT
(
"info"
,
(
"name %s"
,
func_name
()));
switch
(
cached_result_type
=
args
[
0
]
->
cast_to_int_type
())
{
switch
(
args
[
0
]
->
cast_to_int_type
())
{
case
INT_RESULT
:
cached_result_type
=
INT_RESULT
;
max_length
=
args
[
0
]
->
max_length
;
unsigned_flag
=
args
[
0
]
->
unsigned_flag
;
break
;
...
...
@@ -860,8 +861,8 @@ void Item_func_num1::fix_length_and_dec()
max_length
=
float_length
(
decimals
);
break
;
case
TIME_RESULT
:
cached_result_type
=
DECIMAL_RESULT
;
case
DECIMAL_RESULT
:
cached_result_type
=
DECIMAL_RESULT
;
decimals
=
args
[
0
]
->
decimal_scale
();
// Do not preserve NOT_FIXED_DEC
max_length
=
args
[
0
]
->
max_length
;
break
;
...
...
sql/log.cc
View file @
da2a8386
...
...
@@ -9405,8 +9405,8 @@ int TC_LOG_BINLOG::recover(LOG_INFO *linfo, const char *last_log_name,
sizeof
(
xev
->
xid
));
if
(
!
x
||
my_hash_insert
(
&
xids
,
x
))
goto
err2
;
break
;
}
break
;
}
case
BINLOG_CHECKPOINT_EVENT
:
if
(
first_round
&&
do_xa
)
...
...
sql/sql_repl.cc
View file @
da2a8386
...
...
@@ -2665,6 +2665,7 @@ impossible position";
loop_breaker
=
(
flags
&
BINLOG_DUMP_NON_BLOCK
);
break
;
}
/* fall through */
default:
errmsg
=
"could not find next log"
;
my_errno
=
ER_MASTER_FATAL_ERROR_READING_BINLOG
;
...
...
storage/federated/ha_federated.cc
View file @
da2a8386
...
...
@@ -1423,6 +1423,7 @@ bool ha_federated::create_where_from_key(String *to,
}
break
;
}
/* fall through */
case
HA_READ_KEY_OR_NEXT
:
DBUG_PRINT
(
"info"
,
(
"federated HA_READ_KEY_OR_NEXT %d"
,
i
));
if
(
emit_key_part_name
(
&
tmp
,
key_part
)
||
...
...
@@ -1442,6 +1443,7 @@ bool ha_federated::create_where_from_key(String *to,
goto
err
;
break
;
}
/* fall through */
case
HA_READ_KEY_OR_PREV
:
DBUG_PRINT
(
"info"
,
(
"federated HA_READ_KEY_OR_PREV %d"
,
i
));
if
(
emit_key_part_name
(
&
tmp
,
key_part
)
||
...
...
storage/federatedx/ha_federatedx.cc
View file @
da2a8386
...
...
@@ -1342,6 +1342,7 @@ bool ha_federatedx::create_where_from_key(String *to,
}
break
;
}
/* fall through */
case
HA_READ_KEY_OR_NEXT
:
DBUG_PRINT
(
"info"
,
(
"federatedx HA_READ_KEY_OR_NEXT %d"
,
i
));
if
(
emit_key_part_name
(
&
tmp
,
key_part
)
||
...
...
@@ -1361,6 +1362,7 @@ bool ha_federatedx::create_where_from_key(String *to,
goto
err
;
break
;
}
/* fall through */
case
HA_READ_KEY_OR_PREV
:
DBUG_PRINT
(
"info"
,
(
"federatedx HA_READ_KEY_OR_PREV %d"
,
i
));
if
(
emit_key_part_name
(
&
tmp
,
key_part
)
||
...
...
storage/heap/hp_extra.c
View file @
da2a8386
...
...
@@ -34,6 +34,7 @@ int heap_extra(register HP_INFO *info, enum ha_extra_function function)
switch
(
function
)
{
case
HA_EXTRA_RESET_STATE
:
heap_reset
(
info
);
/* fall through */
case
HA_EXTRA_NO_READCHECK
:
info
->
opt_flag
&=
~
READ_CHECK_USED
;
/* No readcheck */
break
;
...
...
storage/maria/ma_key_recover.c
View file @
da2a8386
...
...
@@ -1169,6 +1169,7 @@ uint _ma_apply_redo_index(MARIA_HA *info,
goto
err
;
}
page_length
=
page
.
size
;
break
;
}
case
KEY_OP_NONE
:
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment