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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f43ebb83
Commit
f43ebb83
authored
Dec 29, 2002
by
miguel@hegel.br
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings removing unreferenced variables
parent
6ab60981
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
8 deletions
+1
-8
sql/field.cc
sql/field.cc
+0
-2
sql/item.cc
sql/item.cc
+0
-1
sql/sql_parse.cc
sql/sql_parse.cc
+0
-2
sql/sql_select.cc
sql/sql_select.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+0
-2
No files found.
sql/field.cc
View file @
f43ebb83
...
...
@@ -2797,7 +2797,6 @@ double Field_timestamp::val_real(void)
longlong
Field_timestamp
::
val_int
(
void
)
{
uint
len
,
pos
;
int
part_time
;
uint32
temp
;
time_t
time_arg
;
...
...
@@ -3926,7 +3925,6 @@ double Field_string::val_real(void)
longlong
Field_string
::
val_int
(
void
)
{
longlong
value
;
CHARSET_INFO
*
cs
=
charset
();
return
my_strntoll
(
cs
,
ptr
,
field_length
,
NULL
,
10
);
}
...
...
sql/item.cc
View file @
f43ebb83
...
...
@@ -608,7 +608,6 @@ bool Item_field::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
(
char
*
)
field_name
);
if
(
!
r
)
return
1
;
int
res
;
if
(
r
->
check_cols
(
1
)
||
r
->
fix_fields
(
thd
,
tables
,
ref
))
return
1
;
r
->
depended_from
=
last
;
...
...
sql/sql_parse.cc
View file @
f43ebb83
...
...
@@ -1461,7 +1461,6 @@ mysql_execute_command(THD *thd)
int
res
=
0
;
LEX
*
lex
=
&
thd
->
lex
;
TABLE_LIST
*
tables
=
(
TABLE_LIST
*
)
lex
->
select_lex
.
table_list
.
first
;
TABLE_LIST
*
cursor
;
SELECT_LEX
*
select_lex
=
&
lex
->
select_lex
;
SELECT_LEX_UNIT
*
unit
=
&
lex
->
unit
;
DBUG_ENTER
(
"mysql_execute_command"
);
...
...
@@ -1803,7 +1802,6 @@ mysql_execute_command(THD *thd)
}
if
(
tables
->
next
)
{
TABLE_LIST
*
table
;
if
(
check_table_access
(
thd
,
SELECT_ACL
,
tables
->
next
))
goto
error
;
// Error message is given
}
...
...
sql/sql_select.cc
View file @
f43ebb83
...
...
@@ -7525,7 +7525,7 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
JOIN_TAB
*
tab
=
join
->
join_tab
+
i
;
TABLE
*
table
=
tab
->
table
;
char
buff
[
512
],
*
buff_ptr
=
buff
;
char
buff1
[
512
],
buff2
[
512
]
,
buff3
[
512
]
;
char
buff1
[
512
],
buff2
[
512
];
String
tmp1
(
buff1
,
sizeof
(
buff1
),
default_charset_info
);
String
tmp2
(
buff2
,
sizeof
(
buff2
),
default_charset_info
);
tmp1
.
length
(
0
);
...
...
sql/sql_show.cc
View file @
f43ebb83
...
...
@@ -841,7 +841,6 @@ int
mysqld_show_keys
(
THD
*
thd
,
TABLE_LIST
*
table_list
)
{
TABLE
*
table
;
char
buff
[
256
];
Protocol
*
protocol
=
thd
->
protocol
;
DBUG_ENTER
(
"mysqld_show_keys"
);
DBUG_PRINT
(
"enter"
,(
"db: %s table: %s"
,
table_list
->
db
,
...
...
@@ -1329,7 +1328,6 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
time_t
now
=
time
(
0
);
while
((
thd_info
=
thread_infos
.
get
()))
{
char
buff
[
20
],
*
end
;
protocol
->
prepare_for_resend
();
protocol
->
store
((
ulonglong
)
thd_info
->
thread_id
);
protocol
->
store
(
thd_info
->
user
);
...
...
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