diff options
author | unknown <tim@white.box> | 2001-08-21 19:14:04 -0400 |
---|---|---|
committer | unknown <tim@white.box> | 2001-08-21 19:14:04 -0400 |
commit | e06a901ebb7ef8a3073192908decf3ed07b20c4e (patch) | |
tree | dce86f855e4d7021278148a09fb15136265231be /client/mysqltest.c | |
parent | 4d970bd5456accc8a2bcbc0fb009dd46cadddd17 (diff) | |
download | mariadb-git-e06a901ebb7ef8a3073192908decf3ed07b20c4e.tar.gz |
Portability fix in mysqlbinlog.cc (include my_pthread.h)
Clean up 'unused argument' warnings
Add extern "C" { ... } in my_pthread.h
client/mysqlbinlog.cc:
Include my_pthread.h before thr_alarm.h (otherwise pthread_t isn't
declared yet).
client/mysqltest.c:
Fix unused argument warnings.
client/thread_test.c:
Fix unused argument warnings.
include/my_pthread.h:
Put extern "C" { ... } wrappers, because this file is included from
some C++ files.
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r-- | client/mysqltest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index f6d87352a6c..6c5f1c57f6a 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -247,10 +247,10 @@ static int eval_result = 0; /* Disable functions that only exist in MySQL 4.0 */ #if MYSQL_VERSION_ID < 40000 -static void mysql_enable_rpl_parse(MYSQL* mysql) {} -static void mysql_disable_rpl_parse(MYSQL* mysql) {} -static int mysql_rpl_parse_enabled(MYSQL* mysql) { return 1; } -static int mysql_rpl_probe(MYSQL *mysql) { return 1; } +static void mysql_enable_rpl_parse(MYSQL* mysql __attribute__((unused))) {} +static void mysql_disable_rpl_parse(MYSQL* mysql __attribute__((unused))) {} +static int mysql_rpl_parse_enabled(MYSQL* mysql __attribute__((unused))) { return 1; } +static int mysql_rpl_probe(MYSQL *mysql __attribute__((unused))) { return 1; } #endif |