From af9d015f46336c049b81667f104d0e0bc9ec90fc Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 13 Apr 2010 09:31:22 -0500 Subject: [svn-r18550] Description: Bring r18548 from trunk to 1.8 branch: Minor cleanups to compile with PGI C compiler 10.x. Tested on: Mac OS X/32 10.6.3 (amazon) (tested on trunk) --- src/H5B2pkg.h | 2 +- test/cache_common.h | 2 +- tools/lib/h5tools_utils.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/H5B2pkg.h b/src/H5B2pkg.h index 6307187..dd8f67b 100644 --- a/src/H5B2pkg.h +++ b/src/H5B2pkg.h @@ -248,7 +248,7 @@ H5_DLLVAR const H5B2_class_t H5B2_TEST[1]; #endif /* H5B2_TESTING */ /* Array of v2 B-tree client ID -> client class mappings */ -extern const H5B2_class_t *const H5B2_client_class_g[]; +extern const H5B2_class_t *const H5B2_client_class_g[H5B2_NUM_BTREE_ID]; /******************************/ diff --git a/test/cache_common.h b/test/cache_common.h index e692a33..a13d64a 100644 --- a/test/cache_common.h +++ b/test/cache_common.h @@ -479,7 +479,7 @@ struct expected_entry_status /* global variable externs: */ -extern const char *FILENAME[]; +extern const char *FILENAME[3]; extern hbool_t write_permitted; extern hbool_t pass; /* set to false on error */ diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index 82e9ab9..c5bc761 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -315,7 +315,7 @@ print_version(const char *progname) { printf("%s: Version %u.%u.%u%s%s\n", progname, H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE, - H5_VERS_SUBRELEASE[0] ? "-" : "", H5_VERS_SUBRELEASE); + ((char *)H5_VERS_SUBRELEASE)[0] ? "-" : "", H5_VERS_SUBRELEASE); } -- cgit v0.12