libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 07/11] ppc64: remove compile warnings from wcha


From: Cody P Schafer
Subject: [Libunwind-devel] [PATCH 07/11] ppc64: remove compile warnings from wchar test.
Date: Mon, 10 Sep 2012 17:21:39 -0700

---
 tests/ppc64-test-wchar.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/ppc64-test-wchar.c b/tests/ppc64-test-wchar.c
index 01d637c..4506e7f 100644
--- a/tests/ppc64-test-wchar.c
+++ b/tests/ppc64-test-wchar.c
@@ -1,13 +1,13 @@
 #include <wchar.h>
 #include <stdio.h>
-main ()
+int main ()
 {
   wchar_t *wstring =
     L"Now is the time for all good men to come to the aid of their country";
-  int i;
+  unsigned i;
   int ret;
 
-  printf("wcslen(wstring) = %d\n", wcslen(wstring));
+  printf("wcslen(wstring) = %lu\n", (long unsigned) wcslen(wstring));
   for (i = 0; i < wcslen (wstring); i++)
     {
       ret = printf ("%lc", wstring[i]);
@@ -17,4 +17,5 @@ main ()
       }
     }
   printf("\n");
+  return 0;
 }
-- 
1.7.11.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]