diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-04-05 21:41:54 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-04-05 21:41:54 (GMT) |
commit | c0d7b109c9ee0c2c3e150e17bc265324c79818a9 (patch) | |
tree | 5eea41e7f0f46433f6ee1bc94da444b7c7f1baae /src/H5private.h | |
parent | 41dd2968355169523300a65cb55b7a457900ef85 (diff) | |
download | hdf5-c0d7b109c9ee0c2c3e150e17bc265324c79818a9.zip hdf5-c0d7b109c9ee0c2c3e150e17bc265324c79818a9.tar.gz hdf5-c0d7b109c9ee0c2c3e150e17bc265324c79818a9.tar.bz2 |
[svn-r18515] 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.
Red Storm Qual passed with the fixed H5_IS_API macro though it has other
failures later. Will be fixed in another batch.
Diffstat (limited to 'src/H5private.h')
-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 a67cac2..440c4a7 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1631,7 +1631,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[]; |