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
2189df3c
Commit
2189df3c
authored
Apr 07, 2016
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings
parent
031e3442
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
sql/sql_parse.cc
sql/sql_parse.cc
+1
-2
storage/innobase/lock/lock0lock.cc
storage/innobase/lock/lock0lock.cc
+4
-4
storage/xtradb/lock/lock0lock.cc
storage/xtradb/lock/lock0lock.cc
+4
-4
No files found.
sql/sql_parse.cc
View file @
2189df3c
...
...
@@ -1122,7 +1122,6 @@ static enum enum_server_command fetch_command(THD *thd, char *packet)
{
enum
enum_server_command
command
=
(
enum
enum_server_command
)
(
uchar
)
packet
[
0
];
NET
*
net
=
&
thd
->
net
;
DBUG_ENTER
(
"fetch_command"
);
if
(
command
>=
COM_END
||
...
...
@@ -1130,7 +1129,7 @@ static enum enum_server_command fetch_command(THD *thd, char *packet)
command
=
COM_END
;
// Wrong command
DBUG_PRINT
(
"info"
,(
"Command on %s = %d (%s)"
,
vio_description
(
net
->
vio
),
command
,
vio_description
(
thd
->
net
.
vio
),
command
,
command_name
[
command
].
str
));
DBUG_RETURN
(
command
);
}
...
...
storage/innobase/lock/lock0lock.cc
View file @
2189df3c
...
...
@@ -6817,7 +6817,7 @@ lock_clust_rec_modify_check_and_lock(
lock_rec_convert_impl_to_expl
(
block
,
rec
,
index
,
offsets
);
lock_mutex_enter
();
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
ut_ad
(
lock_table_has
(
trx
,
index
->
table
,
LOCK_IX
));
...
...
@@ -6877,7 +6877,7 @@ lock_sec_rec_modify_check_and_lock(
index record, and this would not have been possible if another active
transaction had modified this secondary index record. */
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
lock_mutex_enter
();
ut_ad
(
lock_table_has
(
trx
,
index
->
table
,
LOCK_IX
));
...
...
@@ -6977,7 +6977,7 @@ lock_sec_rec_read_check_and_lock(
lock_rec_convert_impl_to_expl
(
block
,
rec
,
index
,
offsets
);
}
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
lock_mutex_enter
();
ut_ad
(
mode
!=
LOCK_X
...
...
@@ -7051,7 +7051,7 @@ lock_clust_rec_read_check_and_lock(
}
lock_mutex_enter
();
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
ut_ad
(
mode
!=
LOCK_X
||
lock_table_has
(
trx
,
index
->
table
,
LOCK_IX
));
...
...
storage/xtradb/lock/lock0lock.cc
View file @
2189df3c
...
...
@@ -6890,7 +6890,7 @@ lock_clust_rec_modify_check_and_lock(
lock_rec_convert_impl_to_expl
(
block
,
rec
,
index
,
offsets
);
lock_mutex_enter
();
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
ut_ad
(
lock_table_has
(
trx
,
index
->
table
,
LOCK_IX
));
...
...
@@ -6954,7 +6954,7 @@ lock_sec_rec_modify_check_and_lock(
index record, and this would not have been possible if another active
transaction had modified this secondary index record. */
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
lock_mutex_enter
();
ut_ad
(
lock_table_has
(
trx
,
index
->
table
,
LOCK_IX
));
...
...
@@ -7063,7 +7063,7 @@ lock_sec_rec_read_check_and_lock(
lock_rec_convert_impl_to_expl
(
block
,
rec
,
index
,
offsets
);
}
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
lock_mutex_enter
();
ut_ad
(
mode
!=
LOCK_X
...
...
@@ -7146,7 +7146,7 @@ lock_clust_rec_read_check_and_lock(
}
lock_mutex_enter
();
trx_t
*
trx
=
thr_get_trx
(
thr
);
trx_t
*
trx
__attribute__
((
unused
))
=
thr_get_trx
(
thr
);
ut_ad
(
mode
!=
LOCK_X
||
lock_table_has
(
trx
,
index
->
table
,
LOCK_IX
));
...
...
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