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
2901497b
Commit
2901497b
authored
Mar 28, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-4243 Warnings/errors while compiling with clang
parent
78683672
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
19 additions
and
24 deletions
+19
-24
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+1
-1
mysys/default.c
mysys/default.c
+1
-1
sql/log.cc
sql/log.cc
+1
-1
sql/log_event.cc
sql/log_event.cc
+1
-1
sql/opt_sum.cc
sql/opt_sum.cc
+1
-1
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+3
-3
storage/federatedx/ha_federatedx.cc
storage/federatedx/ha_federatedx.cc
+1
-1
storage/innobase/sync/sync0sync.c
storage/innobase/sync/sync0sync.c
+2
-2
storage/maria/ma_bitmap.c
storage/maria/ma_bitmap.c
+3
-8
storage/maria/ma_blockrec.c
storage/maria/ma_blockrec.c
+1
-1
storage/maria/ma_test3.c
storage/maria/ma_test3.c
+1
-1
storage/xtradb/sync/sync0sync.c
storage/xtradb/sync/sync0sync.c
+2
-2
strings/decimal.c
strings/decimal.c
+1
-1
No files found.
libmysqld/lib_sql.cc
View file @
2901497b
...
@@ -440,7 +440,7 @@ static MYSQL_RES * emb_store_result(MYSQL *mysql)
...
@@ -440,7 +440,7 @@ static MYSQL_RES * emb_store_result(MYSQL *mysql)
int
emb_read_change_user_result
(
MYSQL
*
mysql
)
int
emb_read_change_user_result
(
MYSQL
*
mysql
)
{
{
mysql
->
net
.
read_pos
=
(
uchar
*
)
""
;
// fake an OK packet
mysql
->
net
.
read_pos
=
(
uchar
*
)
""
;
// fake an OK packet
return
mysql_errno
(
mysql
)
?
packet_error
:
1
/* length of the OK packet */
;
return
mysql_errno
(
mysql
)
?
(
int
)
packet_error
:
1
/* length of the OK packet */
;
}
}
MYSQL_METHODS
embedded_methods
=
MYSQL_METHODS
embedded_methods
=
...
...
mysys/default.c
View file @
2901497b
...
@@ -814,7 +814,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
...
@@ -814,7 +814,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
continue
;
continue
;
/* Configuration File Directives */
/* Configuration File Directives */
if
(
(
*
ptr
==
'!'
)
)
if
(
*
ptr
==
'!'
)
{
{
if
(
recursion_level
>=
max_recursion_level
)
if
(
recursion_level
>=
max_recursion_level
)
{
{
...
...
sql/log.cc
View file @
2901497b
...
@@ -2253,7 +2253,7 @@ static int find_uniq_filename(char *name)
...
@@ -2253,7 +2253,7 @@ static int find_uniq_filename(char *name)
my_dirend
(
dir_info
);
my_dirend
(
dir_info
);
/* check if reached the maximum possible extension number */
/* check if reached the maximum possible extension number */
if
(
(
max_found
==
MAX_LOG_UNIQUE_FN_EXT
)
)
if
(
max_found
==
MAX_LOG_UNIQUE_FN_EXT
)
{
{
sql_print_error
(
"Log filename extension number exhausted: %06lu. \
sql_print_error
(
"Log filename extension number exhausted: %06lu. \
Please fix this by archiving old logs and \
Please fix this by archiving old logs and \
...
...
sql/log_event.cc
View file @
2901497b
...
@@ -1369,7 +1369,7 @@ failed my_b_read"));
...
@@ -1369,7 +1369,7 @@ failed my_b_read"));
Log_event
*
res
=
0
;
Log_event
*
res
=
0
;
#ifndef max_allowed_packet
#ifndef max_allowed_packet
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
uint
max_allowed_packet
=
thd
?
slave_max_allowed_packet
:~
(
u
long
)
0
;
uint
max_allowed_packet
=
thd
?
slave_max_allowed_packet
:~
(
u
int
)
0
;
#endif
#endif
if
(
data_len
>
max_allowed_packet
)
if
(
data_len
>
max_allowed_packet
)
...
...
sql/opt_sum.cc
View file @
2901497b
...
@@ -84,7 +84,7 @@ static ulonglong get_exact_record_count(List<TABLE_LIST> &tables)
...
@@ -84,7 +84,7 @@ static ulonglong get_exact_record_count(List<TABLE_LIST> &tables)
while
((
tl
=
ti
++
))
while
((
tl
=
ti
++
))
{
{
ha_rows
tmp
=
tl
->
table
->
file
->
records
();
ha_rows
tmp
=
tl
->
table
->
file
->
records
();
if
(
(
tmp
==
HA_POS_ERROR
)
)
if
(
tmp
==
HA_POS_ERROR
)
return
ULONGLONG_MAX
;
return
ULONGLONG_MAX
;
count
*=
tmp
;
count
*=
tmp
;
}
}
...
...
storage/csv/ha_tina.cc
View file @
2901497b
...
@@ -1436,9 +1436,9 @@ int ha_tina::rnd_end()
...
@@ -1436,9 +1436,9 @@ int ha_tina::rnd_end()
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
/* Open the file again */
/* Open the file again */
if
((
(
data_file
=
mysql_file_open
(
csv_key_file_data
,
if
((
data_file
=
mysql_file_open
(
csv_key_file_data
,
share
->
data_file_name
,
share
->
data_file_name
,
O_RDONLY
,
MYF
(
MY_WME
)))
==
-
1
)
)
O_RDONLY
,
MYF
(
MY_WME
)))
==
-
1
)
DBUG_RETURN
(
my_errno
?
my_errno
:
-
1
);
DBUG_RETURN
(
my_errno
?
my_errno
:
-
1
);
/*
/*
As we reopened the data file, increase share->data_file_version
As we reopened the data file, increase share->data_file_version
...
...
storage/federatedx/ha_federatedx.cc
View file @
2901497b
...
@@ -764,7 +764,7 @@ static int parse_url(MEM_ROOT *mem_root, FEDERATEDX_SHARE *share, TABLE *table,
...
@@ -764,7 +764,7 @@ static int parse_url(MEM_ROOT *mem_root, FEDERATEDX_SHARE *share, TABLE *table,
user:@hostname:port/db/table
user:@hostname:port/db/table
Then password is a null string, so set to NULL
Then password is a null string, so set to NULL
*/
*/
if
(
(
share
->
password
[
0
]
==
'\0'
)
)
if
(
share
->
password
[
0
]
==
'\0'
)
share
->
password
=
NULL
;
share
->
password
=
NULL
;
}
}
...
...
storage/innobase/sync/sync0sync.c
View file @
2901497b
...
@@ -316,9 +316,9 @@ mutex_create_func(
...
@@ -316,9 +316,9 @@ mutex_create_func(
/* NOTE! The very first mutexes are not put to the mutex list */
/* NOTE! The very first mutexes are not put to the mutex list */
if
(
(
mutex
==
&
mutex_list_mutex
)
if
(
mutex
==
&
mutex_list_mutex
#ifdef UNIV_SYNC_DEBUG
#ifdef UNIV_SYNC_DEBUG
||
(
mutex
==
&
sync_thread_mutex
)
||
mutex
==
&
sync_thread_mutex
#endif
/* UNIV_SYNC_DEBUG */
#endif
/* UNIV_SYNC_DEBUG */
)
{
)
{
...
...
storage/maria/ma_bitmap.c
View file @
2901497b
...
@@ -135,8 +135,7 @@ const char *bits_to_txt[]=
...
@@ -135,8 +135,7 @@ const char *bits_to_txt[]=
"tail 00-40 % full"
,
"tail 40-80 % full"
,
"tail/blob full"
"tail 00-40 % full"
,
"tail 40-80 % full"
,
"tail/blob full"
};
};
/*#define WRONG_BITMAP_FLUSH 1*/
/*define only for provoking bugs*/
#define WRONG_BITMAP_FLUSH 0
/*define to 1 only for provoking bugs*/
#undef WRONG_BITMAP_FLUSH
static
my_bool
_ma_read_bitmap_page
(
MARIA_HA
*
info
,
static
my_bool
_ma_read_bitmap_page
(
MARIA_HA
*
info
,
MARIA_FILE_BITMAP
*
bitmap
,
MARIA_FILE_BITMAP
*
bitmap
,
...
@@ -164,11 +163,7 @@ static inline my_bool write_changed_bitmap(MARIA_SHARE *share,
...
@@ -164,11 +163,7 @@ static inline my_bool write_changed_bitmap(MARIA_SHARE *share,
*/
*/
bitmap
->
changed_not_flushed
=
1
;
bitmap
->
changed_not_flushed
=
1
;
if
((
bitmap
->
non_flushable
==
0
)
if
((
bitmap
->
non_flushable
==
0
)
||
WRONG_BITMAP_FLUSH
)
#ifdef WRONG_BITMAP_FLUSH
||
1
#endif
)
{
{
res
=
pagecache_write
(
share
->
pagecache
,
res
=
pagecache_write
(
share
->
pagecache
,
&
bitmap
->
file
,
bitmap
->
page
,
0
,
&
bitmap
->
file
,
bitmap
->
page
,
0
,
...
@@ -495,7 +490,7 @@ my_bool _ma_bitmap_flush_all(MARIA_SHARE *share)
...
@@ -495,7 +490,7 @@ my_bool _ma_bitmap_flush_all(MARIA_SHARE *share)
{
{
bitmap
->
flush_all_requested
++
;
bitmap
->
flush_all_requested
++
;
bitmap
->
waiting_for_non_flushable
++
;
bitmap
->
waiting_for_non_flushable
++
;
#if
ndef
WRONG_BITMAP_FLUSH
#if
!
WRONG_BITMAP_FLUSH
while
(
bitmap
->
non_flushable
>
0
)
while
(
bitmap
->
non_flushable
>
0
)
{
{
DBUG_PRINT
(
"info"
,
(
"waiting for bitmap to be flushable"
));
DBUG_PRINT
(
"info"
,
(
"waiting for bitmap to be flushable"
));
...
...
storage/maria/ma_blockrec.c
View file @
2901497b
...
@@ -7123,7 +7123,7 @@ my_bool _ma_apply_undo_row_delete(MARIA_HA *info, LSN undo_lsn,
...
@@ -7123,7 +7123,7 @@ my_bool _ma_apply_undo_row_delete(MARIA_HA *info, LSN undo_lsn,
memcpy
(
field_pos
,
field_length_data
,
size_length
);
memcpy
(
field_pos
,
field_length_data
,
size_length
);
field_length_data
+=
size_length
;
field_length_data
+=
size_length
;
memcpy
(
field_pos
+
size_length
,
&
header
,
sizeof
(
&
header
));
memcpy
(
field_pos
+
size_length
,
&
header
,
sizeof
(
header
));
header
+=
blob_length
;
header
+=
blob_length
;
*
blob_lengths
++=
blob_length
;
*
blob_lengths
++=
blob_length
;
break
;
break
;
...
...
storage/maria/ma_test3.c
View file @
2901497b
...
@@ -114,7 +114,7 @@ int main(int argc,char **argv)
...
@@ -114,7 +114,7 @@ int main(int argc,char **argv)
sleep
(
1
);
sleep
(
1
);
return
0
;
return
0
;
}
}
rnd
(
1
);
(
void
)
rnd
(
1
);
}
}
for
(
i
=
0
;
i
<
forks
;
i
++
)
for
(
i
=
0
;
i
<
forks
;
i
++
)
...
...
storage/xtradb/sync/sync0sync.c
View file @
2901497b
...
@@ -315,9 +315,9 @@ mutex_create_func(
...
@@ -315,9 +315,9 @@ mutex_create_func(
/* NOTE! The very first mutexes are not put to the mutex list */
/* NOTE! The very first mutexes are not put to the mutex list */
if
(
(
mutex
==
&
mutex_list_mutex
)
if
(
mutex
==
&
mutex_list_mutex
#ifdef UNIV_SYNC_DEBUG
#ifdef UNIV_SYNC_DEBUG
||
(
mutex
==
&
sync_thread_mutex
)
||
mutex
==
&
sync_thread_mutex
#endif
/* UNIV_SYNC_DEBUG */
#endif
/* UNIV_SYNC_DEBUG */
)
{
)
{
...
...
strings/decimal.c
View file @
2901497b
...
@@ -669,7 +669,7 @@ int decimal_shift(decimal_t *dec, int shift)
...
@@ -669,7 +669,7 @@ int decimal_shift(decimal_t *dec, int shift)
if
(
do_left
)
if
(
do_left
)
{
{
do_mini_left_shift
(
dec
,
l_mini_shift
,
beg
,
end
);
do_mini_left_shift
(
dec
,
l_mini_shift
,
beg
,
end
);
mini_shift
=
-
l_mini_shift
;
mini_shift
=
-
l_mini_shift
;
}
}
else
else
{
{
...
...
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