[Top][All Lists]
[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
- Re: [Libunwind-devel] [PATCH 10/11] configure: introduce AX_ARG_ENABLE., (continued)
[Libunwind-devel] [PATCH 09/11] configure: use AC_ARG_ENABLE's defaults when possible, Cody P Schafer, 2012/09/10
[Libunwind-devel] [PATCH 08/11] configure: avoid using a shell function in autoconf, Cody P Schafer, 2012/09/10
[Libunwind-devel] [PATCH 03/11] ppc32: add used attribute to dmy_ctxt, Cody P Schafer, 2012/09/10
[Libunwind-devel] [PATCH 07/11] ppc64: remove compile warnings from wchar test.,
Cody P Schafer <=
[Libunwind-devel] [PATCH 04/11] ppc32: ppc64: test altivec support by running the compiler., Cody P Schafer, 2012/09/10
[Libunwind-devel] [PATCH 05/11] build: make libunwind-coredump build optional, Cody P Schafer, 2012/09/10
[Libunwind-devel] [PATCH 11/11] UPT: Add reg offsets for ppc32/64, Cody P Schafer, 2012/09/10