Commit c63e7c3e authored by unknown's avatar unknown

compilation/test fixes


include/my_global.h:
  only use compile_time_assert on gcc
mysql-test/mysql-test-run.pl:
  better --datadir for mysqld --help
sql/mysql_priv.h:
  error-prone but concatenation-friendly IF_NETWARE()
storage/innobase/handler/ha_innodb.cc:
  no preprocessor directives inside macro arguments
parent c75c5a1a
...@@ -466,7 +466,7 @@ C_MODE_END ...@@ -466,7 +466,7 @@ C_MODE_END
#include <assert.h> #include <assert.h>
/* an assert that works at compile-time. only for constant expression */ /* an assert that works at compile-time. only for constant expression */
#ifdef __WIN__ #ifndef __GNUC__
#define compile_time_assert(X) do { } while(0) #define compile_time_assert(X) do { } while(0)
#else #else
#define compile_time_assert(X) \ #define compile_time_assert(X) \
......
...@@ -1361,7 +1361,10 @@ sub collect_mysqld_features () { ...@@ -1361,7 +1361,10 @@ sub collect_mysqld_features () {
# --no-defaults and --skip-grant-tables are to avoid loading # --no-defaults and --skip-grant-tables are to avoid loading
# system-wide configs and plugins # system-wide configs and plugins
# #
my $list= `$exe_mysqld --no-defaults --datadir=$default_vardir --language=$path_language --skip-grant-tables --verbose --help`; # --datadir - for lowercase test to work
#
my $tmp_datadir=$opt_vardir || $default_vardir;
my $list= `$exe_mysqld --no-defaults --datadir=$tmp_datadir --language=$path_language --skip-grant-tables --verbose --help`;
foreach my $line (split('\n', $list)) foreach my $line (split('\n', $list))
{ {
......
...@@ -259,9 +259,9 @@ MY_LOCALE *my_locale_by_number(uint number); ...@@ -259,9 +259,9 @@ MY_LOCALE *my_locale_by_number(uint number);
#define MAX_CONNECT_ERRORS 10 // errors before disabling host #define MAX_CONNECT_ERRORS 10 // errors before disabling host
#ifdef __NETWARE__ #ifdef __NETWARE__
#define IF_NETWARE(A,B) (A) #define IF_NETWARE(A,B) A
#else #else
#define IF_NETWARE(A,B) (B) #define IF_NETWARE(A,B) B
#endif #endif
#if defined(__WIN__) #if defined(__WIN__)
......
...@@ -7675,9 +7675,7 @@ static MYSQL_SYSVAR_ULONG(fast_shutdown, innobase_fast_shutdown, ...@@ -7675,9 +7675,7 @@ static MYSQL_SYSVAR_ULONG(fast_shutdown, innobase_fast_shutdown,
NetWare can't close unclosed files, can't automatically kill remaining NetWare can't close unclosed files, can't automatically kill remaining
threads, etc, so on this OS we disable the crash-like InnoDB shutdown. threads, etc, so on this OS we disable the crash-like InnoDB shutdown.
*/ */
#ifndef __NETWARE__ IF_NETWARE("", " or 2 (fastest - crash-like)")
" or 2 (fastest - crash-like)"
#endif
".", ".",
NULL, NULL, 1, 0, IF_NETWARE(1,2), 0); NULL, NULL, 1, 0, IF_NETWARE(1,2), 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment