summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authormonty@mysql.com/nosik.monty.fi <>2006-11-27 01:47:38 +0200
committermonty@mysql.com/nosik.monty.fi <>2006-11-27 01:47:38 +0200
commitfa81a82e7f2d03a4f60b1783d578ca1abeddfae9 (patch)
treeb29f99476834178f395c188e1c4d352dd106fc01 /unittest
parent89570bf966570ecce761e1fea2bb5d10db91f621 (diff)
downloadmariadb-git-fa81a82e7f2d03a4f60b1783d578ca1abeddfae9.tar.gz
Fixed a LOT of compiler warnings
Added missing DBUG_RETURN statements (in mysqldump.c) Added missing enums Fixed a lot of wrong DBUG_PRINT() statements, some of which could cause crashes Removed usage of %lld and %p in printf strings as these are not portable or produces different results on different systems.
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mytap/t/basic-t.c2
-rw-r--r--unittest/mytap/tap.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/unittest/mytap/t/basic-t.c b/unittest/mytap/t/basic-t.c
index bf4c1a9a664..16928509e8c 100644
--- a/unittest/mytap/t/basic-t.c
+++ b/unittest/mytap/t/basic-t.c
@@ -7,7 +7,7 @@
int main() {
plan(5);
ok(1 == 1, "testing basic functions");
- ok(2 == 2, "");
+ ok(2 == 2, " ");
ok(3 == 3, NULL);
if (1 == 1)
skip(2, "Sensa fragoli");
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c
index 29dc765950f..e3a967ceb79 100644
--- a/unittest/mytap/tap.c
+++ b/unittest/mytap/tap.c
@@ -235,6 +235,7 @@ skip(int how_many, char const *const fmt, ...)
while (how_many-- > 0)
{
va_list ap;
+ memset((char*) &ap, 0, sizeof(ap)); /* Keep compiler happy */
vemit_tap(1, NULL, ap);
emit_dir("skip", reason);
emit_endl();