From 765250cb5017f9e9f0c51b4378bd773f9403e5cc Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 1 Apr 2005 13:35:57 +0000 Subject: [PATCH] Fix compiler warnings and type comparisons This commit was SVN r5131. --- test/class/ompi_pointer_array.c | 4 ++-- test/class/ompi_value_array.c | 2 +- test/util/ompi_argv.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/class/ompi_pointer_array.c b/test/class/ompi_pointer_array.c index 7ac027e0b0..d2790a19ea 100644 --- a/test/class/ompi_pointer_array.c +++ b/test/class/ompi_pointer_array.c @@ -34,8 +34,8 @@ static void test(bool thread_usage){ ompi_pointer_array_t *array; char *test_value; char **test_data; - size_t len_test_data,i,test_len_in_array,error_cnt; - size_t ele_index; + int len_test_data,i,test_len_in_array,error_cnt; + int ele_index; int use_threads,error_code; /* initialize thread levels */ diff --git a/test/class/ompi_value_array.c b/test/class/ompi_value_array.c index ec5892d93d..4e592efbad 100644 --- a/test/class/ompi_value_array.c +++ b/test/class/ompi_value_array.c @@ -33,7 +33,7 @@ int main(int argc, char **argv) { - int i; + uint64_t i; uint64_t count; ompi_value_array_t array; diff --git a/test/util/ompi_argv.c b/test/util/ompi_argv.c index 2ca5c2e8ed..56439bbcbc 100644 --- a/test/util/ompi_argv.c +++ b/test/util/ompi_argv.c @@ -219,7 +219,7 @@ static bool test3(void) static bool test4(void) { - int i, count; + size_t i, count; char *a = strdup("the quick brown fox jumped over the lazy dog a_really_long_argument_to_force_a_long_copy_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"); char **b; char *start;