summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBUILD/SETUP.sh15
-rw-r--r--storage/connect/json.cpp2
-rw-r--r--storage/connect/jsonudf.cpp2
-rw-r--r--storage/tokudb/mysql-test/tokudb/t/change_column_bin.py1
-rw-r--r--storage/tokudb/mysql-test/tokudb/t/change_column_bin.test1
-rw-r--r--storage/tokudb/mysql-test/tokudb/t/change_column_char.py1
-rw-r--r--storage/tokudb/mysql-test/tokudb/t/change_column_char.test1
7 files changed, 19 insertions, 4 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index bde095b0aa8..858f42320b8 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -31,6 +31,7 @@ Usage: $0 [-h|-n] [configure-options]
-h, --help Show this help message.
-n, --just-print Don't actually run any commands; just print them.
-c, --just-configure Stop after running configure.
+ Combined with --just-print shows configure options.
--extra-configs=xxx Add this to configure options
--extra-flags=xxx Add this C and CXX flags
--extra-cflags=xxx Add this to C flags
@@ -257,6 +258,10 @@ fi
# (http://samba.org/ccache) is installed, use it.
# We use 'grep' and hope 'grep' will work as expected
# (returns 0 if finds lines)
+
+# As cmake doesn't like CC and CXX with a space, use symlinks from
+# /usr/lib64/ccache if they exits.
+
if test "$USING_GCOV" != "1"
then
# Not using gcov; Safe to use ccache
@@ -265,8 +270,14 @@ fi
if ccache -V > /dev/null 2>&1 && test "$CCACHE_GCOV_VERSION_ENABLED" = "1"
then
- echo "$CC" | grep "ccache" > /dev/null || CC="ccache $CC"
- echo "$CXX" | grep "ccache" > /dev/null || CXX="ccache $CXX"
+ if test -x /usr/lib64/ccache/gcc
+ then
+ CC=/usr/lib64/ccache/gcc
+ fi
+ if test -x /usr/lib64/ccache/g++
+ then
+ CXX=/usr/lib64/ccache/g++
+ fi
fi
# gcov
diff --git a/storage/connect/json.cpp b/storage/connect/json.cpp
index fc7edb84c0f..aa677342fac 100644
--- a/storage/connect/json.cpp
+++ b/storage/connect/json.cpp
@@ -594,7 +594,7 @@ PSZ Serialize(PGLOBAL g, PJSON jsp, char *fn, int pretty)
if (fs) {
fputs(EL, fs);
fclose(fs);
- str = (err) ? NULL : "Ok";
+ str = (err) ? NULL : (char*) "Ok";
} else if (!err) {
str = ((JOUTSTR*)jp)->Strp;
jp->WriteChr('\0');
diff --git a/storage/connect/jsonudf.cpp b/storage/connect/jsonudf.cpp
index 40685ae0f0e..215562af46e 100644
--- a/storage/connect/jsonudf.cpp
+++ b/storage/connect/jsonudf.cpp
@@ -3365,7 +3365,7 @@ my_bool jsoncontains_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
long long jsoncontains(UDF_INIT *initid, UDF_ARGS *args, char *result,
unsigned long *res_length, char *is_null, char *error)
{
- char *p, res[256];
+ char *p __attribute__((unused)), res[256];
long long n;
unsigned long reslen;
diff --git a/storage/tokudb/mysql-test/tokudb/t/change_column_bin.py b/storage/tokudb/mysql-test/tokudb/t/change_column_bin.py
index 0ddee301d1b..b94a80ec7be 100644
--- a/storage/tokudb/mysql-test/tokudb/t/change_column_bin.py
+++ b/storage/tokudb/mysql-test/tokudb/t/change_column_bin.py
@@ -24,6 +24,7 @@ def gen_test(n):
def main():
print "# this test is generated by change_bin.py"
print "# test binary expansion is hot"
+ print "--source include/big_test.inc"
print "--disable_warnings"
print "DROP TABLE IF EXISTS t,ti;"
print "--enable_warnings"
diff --git a/storage/tokudb/mysql-test/tokudb/t/change_column_bin.test b/storage/tokudb/mysql-test/tokudb/t/change_column_bin.test
index 0365c155302..6053a263cf0 100644
--- a/storage/tokudb/mysql-test/tokudb/t/change_column_bin.test
+++ b/storage/tokudb/mysql-test/tokudb/t/change_column_bin.test
@@ -1,6 +1,7 @@
source include/have_tokudb.inc;
# this test is generated by change_bin.py
# test binary expansion is hot
+--source include/big_test.inc
--disable_warnings
DROP TABLE IF EXISTS t,ti;
--enable_warnings
diff --git a/storage/tokudb/mysql-test/tokudb/t/change_column_char.py b/storage/tokudb/mysql-test/tokudb/t/change_column_char.py
index 99d99d1c017..7481d9092f2 100644
--- a/storage/tokudb/mysql-test/tokudb/t/change_column_char.py
+++ b/storage/tokudb/mysql-test/tokudb/t/change_column_char.py
@@ -24,6 +24,7 @@ def gen_test(n):
def main():
print "# this test is generated by change_char.py"
print "# test char expansion"
+ print "--source include/big_test.inc"
print "--disable_warnings"
print "DROP TABLE IF EXISTS t,ti;"
print "--enable_warnings"
diff --git a/storage/tokudb/mysql-test/tokudb/t/change_column_char.test b/storage/tokudb/mysql-test/tokudb/t/change_column_char.test
index 8a0b0a9abd8..977420ad07e 100644
--- a/storage/tokudb/mysql-test/tokudb/t/change_column_char.test
+++ b/storage/tokudb/mysql-test/tokudb/t/change_column_char.test
@@ -1,6 +1,7 @@
source include/have_tokudb.inc;
# this test is generated by change_char.py
# test char expansion
+--source include/big_test.inc
--disable_warnings
DROP TABLE IF EXISTS t,ti;
--enable_warnings