From beb9be3fe44a0561df9292b8f92adfa6e29643f5 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 14 Feb 2007 16:47:12 +0000 Subject: [PATCH] Don't import the datatype debug output if we're not in debug mode. This commit was SVN r13650. --- test/datatype/position.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/datatype/position.c b/test/datatype/position.c index f24b30a34f..f058426f7f 100644 --- a/test/datatype/position.c +++ b/test/datatype/position.c @@ -187,9 +187,11 @@ static void dump_ldi( ddt_ldi_t* buffer, int start_pos, int end_pos ) } } +#if OMPI_ENABLE_DEBUG extern int ompi_unpack_debug; extern int ompi_pack_debug; extern int ompi_position_debug ; +#endif /* OMPI_ENABLE_DEBUG */ static char* bytes_dump( void* src, size_t cnt ) { @@ -222,9 +224,11 @@ int main( int argc, char* argv[] ) ompi_ddt_init(); +#if OMPI_ENABLE_DEBUG ompi_unpack_debug = 0; ompi_pack_debug = 0; ompi_position_debug = 0; +#endif /* OMPI_ENABLE_DEBUG */ create_segments( datatype, data_count, fragment_size, &segments, &seg_count );