]>
Commit | Line | Data |
---|---|---|
4b06cf13 AM |
1 | diff -urNbB mysql-5.0.13-rc.org/sql/mysqld.cc mysql-5.0.13-rc/sql/mysqld.cc |
2 | --- mysql-5.0.13-rc.org/sql/mysqld.cc 2005-09-22 21:39:56.000000000 +0200 | |
3 | +++ mysql-5.0.13-rc/sql/mysqld.cc 2005-09-29 19:29:59.991454000 +0200 | |
4 | @@ -3183,7 +3183,7 @@ | |
5 | init_ssl(); | |
6 | ||
7 | #ifdef HAVE_LIBWRAP | |
8 | - libwrapName= my_progname+dirname_length(my_progname); | |
9 | + libwrapName= (char *)my_progname+dirname_length(my_progname); | |
10 | openlog(libwrapName, LOG_PID, LOG_AUTH); | |
11 | #endif | |
12 | ||
71c5ff23 AM |
13 | From ae21683d980d5fe9e39bd0193827ea3604256eb9 Mon Sep 17 00:00:00 2001 |
14 | From: Jon Olav Hauglid <jon.hauglid@oracle.com> | |
15 | Date: Thu, 28 Feb 2013 14:55:23 +0100 | |
16 | Subject: [PATCH] Bug#16265300: Fix new compilation warnings from XCode 4.6 | |
17 | ||
18 | This patch fixes three new compilation warnings generated by Clang. | |
19 | It also adds -Wall flag for Clang and disables -Wnull-conversion | |
20 | and -Wunused-private-field. | |
21 | --- | |
22 | client/mysql.cc | 4 ++-- | |
23 | configure.cmake | 9 +++++++++ | |
24 | sql/sql_partition.cc | 2 +- | |
25 | storage/innobase/row/row0merge.cc | 4 ++-- | |
26 | 4 files changed, 14 insertions(+), 5 deletions(-) | |
27 | ||
28 | diff --git a/client/mysql.cc b/client/mysql.cc | |
29 | index eca1be0a623..f6a75f47043 100644 | |
30 | --- a/client/mysql.cc | |
31 | +++ b/client/mysql.cc | |
32 | @@ -2911,7 +2911,7 @@ You can turn off this feature to get a quicker startup with -A\n\n"); | |
33 | mysql_free_result(fields); | |
34 | break; | |
35 | } | |
36 | - field_names[i][num_fields*2]= '\0'; | |
37 | + field_names[i][num_fields*2]= NULL; | |
38 | j=0; | |
39 | while ((sql_field=mysql_fetch_field(fields))) | |
40 | { | |
41 | diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc | |
42 | index 201f64522a6..e23fe70ec86 100644 | |
43 | --- a/sql/sql_partition.cc | |
44 | +++ b/sql/sql_partition.cc | |
45 | @@ -284,7 +284,7 @@ bool partition_default_handling(TABLE *table, partition_info *part_info, | |
46 | } | |
47 | } | |
48 | part_info->set_up_defaults_for_partitioning(table->file, | |
49 | - (ulonglong)0, (uint)0); | |
50 | + NULL, 0U); | |
51 | DBUG_RETURN(FALSE); | |
52 | } | |
53 | ||
54 |