]> git.pld-linux.org Git - packages/mysql.git/blame - mysql-build.patch
- up to percona 5.5.57-38.9
[packages/mysql.git] / mysql-build.patch
CommitLineData
4b06cf13
AM
1diff -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
13From ae21683d980d5fe9e39bd0193827ea3604256eb9 Mon Sep 17 00:00:00 2001
14From: Jon Olav Hauglid <jon.hauglid@oracle.com>
15Date: Thu, 28 Feb 2013 14:55:23 +0100
16Subject: [PATCH] Bug#16265300: Fix new compilation warnings from XCode 4.6
17
18This patch fixes three new compilation warnings generated by Clang.
19It also adds -Wall flag for Clang and disables -Wnull-conversion
20and -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
28diff --git a/client/mysql.cc b/client/mysql.cc
29index 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 {
41diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
42index 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
This page took 0.067162 seconds and 4 git commands to generate.