From 2796b45ae17067be57fa4e81ab2b75c5884d6ea4 Mon Sep 17 00:00:00 2001 From: batt Date: Tue, 2 Dec 2008 15:37:17 +0000 Subject: [PATCH] Fix some warnings; remove unneeded inclusions. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1962 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/mware/sprintf_test.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bertos/mware/sprintf_test.c b/bertos/mware/sprintf_test.c index 390b6c31..6aaeef91 100644 --- a/bertos/mware/sprintf_test.c +++ b/bertos/mware/sprintf_test.c @@ -64,7 +64,7 @@ int sprintf_testRun(void) if (strcmp(buf, test_string) != 0) return 1; - snprintf(buf, sizeof buf, "%S", test_string_pgm); + snprintf(buf, sizeof buf, "%S", (wchar_t *)test_string_pgm); if (strcmp(buf, test_string_pgm) != 0) return 2; @@ -94,7 +94,7 @@ int sprintf_testRun(void) /* * Stress tests. */ - snprintf(buf, sizeof buf, "%s", NULL); + snprintf(buf, sizeof buf, "%s", (char *)(NULL)); if (strcmp(buf, "") != 0) return 3; snprintf(buf, sizeof buf, "%k"); @@ -111,10 +111,6 @@ int sprintf_testTearDown(void) } #if UNIT_TEST - #include - #include "sprintf.c" - #include "formatwr.c" - #include "hex.c" TEST_MAIN(sprintf); #endif /* UNIT_TEST */ -- 2.25.1