diff options
author | Michael Widenius <monty@askmonty.org> | 2010-01-28 16:49:14 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-01-28 16:49:14 +0200 |
commit | a0417475678013914fb91c44be279b4107e3ffdb (patch) | |
tree | dfa2593758741f8d6b7ab0a0f2fd788099ea751a /unittest | |
parent | e926af9bf8d2b00c2c31a3741f65e3d5b846dffe (diff) | |
download | mariadb-git-a0417475678013914fb91c44be279b4107e3ffdb.tar.gz |
Fixed compiler warnings & failing test cases
When compiling with debug, don't clear buffer in 'net_clear()'
- This allows us to easier find bugs in the protocol and also get repeatable test failures in test cases where someone forgot to do --reap
client/mysqltest.cc:
Fixed compiler warning
mysql-test/t/partition_innodb_semi_consistent.test:
Added missing --reap (fixes random failure)
sql/net_serv.cc:
When compiling with debug, don't clear buffer in 'net_clear()'
- This allows us to easier find bugs in the protocol and also get repeatable test failures in test cases where someone forgot to do --reap
storage/myisam/ft_boolean_search.c:
Fixed compiler warnings
storage/myisam/ft_parser.c:
Fixed compiler warnings
storage/myisam/ft_stopwords.c:
Fixed compiler warnings
support-files/compiler_warnings.supp:
Added a lot of new suppression of not relevant warnings and warnings in systems we are not in charge of
unittest/mysys/waiting_threads-t.c:
Fixed compiler warnings
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/mysys/waiting_threads-t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/mysys/waiting_threads-t.c b/unittest/mysys/waiting_threads-t.c index d6c8dc31025..79dee219efb 100644 --- a/unittest/mysys/waiting_threads-t.c +++ b/unittest/mysys/waiting_threads-t.c @@ -258,7 +258,7 @@ void do_tests() #define test_kill_strategy(X) \ diag("kill strategy: " #X); \ DBUG_EXECUTE("reset_file", \ - { rewind(DBUG_FILE); ftruncate(fileno(DBUG_FILE), 0); }); \ + { rewind(DBUG_FILE); (void) ftruncate(fileno(DBUG_FILE), 0); }); \ DBUG_PRINT("info", ("kill strategy: " #X)); \ kill_strategy=X; \ do_one_test(); |