diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-04-05 21:44:31 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-04-05 21:44:31 (GMT) |
commit | 0f810834381a67595d8b61383184259e537e996c (patch) | |
tree | 8e4f750f7d05315df04e32f7c72a0475df0fd738 | |
parent | 9a72ebee444ddd75e48bdc2df024671b65bc7a20 (diff) | |
download | hdf5-0f810834381a67595d8b61383184259e537e996c.zip hdf5-0f810834381a67595d8b61383184259e537e996c.tar.gz hdf5-0f810834381a67595d8b61383184259e537e996c.tar.bz2 |
[svn-r18516] Bug:
PGI v10.2 in Red Storm Qual complained about the H5_IS_API macro with the
following message when -Mbounds is used:
PGC-S-0053-Illegal use of void type
The compiler did not like to treat the literal strings as arrays.
The -Mbounds option is used when --disable-production is used.
Solution:
Casted all the literal to (char *).
Tested:
h5committest passed (linew is not quite completed yet.)
Red Storm Qual passed with the fixed H5_IS_API macro though it has other
failures later. Will be fixed in another batch.
-rw-r--r-- | src/H5private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index 860e8ac..c8de6bf 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1637,7 +1637,7 @@ H5_DLL double H5_trace(const double *calltime, const char *func, const char *typ /* `S' is the name of a function which is being tested to check if its */ /* an API function */ -#define H5_IS_API(S) ('_'!=S[2] && '_'!=S[3] && (!S[4] || '_'!=S[4])) +#define H5_IS_API(S) ('_'!=((char*)S)[2] && '_'!=((char*)S)[3] && (!((char*)S)[4] || '_'!=((char*)S)[4])) /* global library version information string */ extern char H5_lib_vers_info_g[]; |