schwehr / hdf5-old

Hierarchical Data Format (HDF) 5
Other
0 stars 0 forks source link

resolved tautologies #7

Open schwehr opened 10 years ago

schwehr commented 10 years ago
clang -DHAVE_CONFIG_H -I. -I/sw/include -UNDEBUG -DH5AC_DEBUG -DH5B_DEBUG -DH5B2_DEBUG -DH5D_DEBUG -DH5E_DEBUG -DH5F_DEBUG -DH5G_DEBUG -DH5HG_DEBUG -DH5HL_DEBUG -DH5I_DEBUG -DH5MF_DEBUG -DH5MM_DEBUG -DH5O_DEBUG -DH5P_DEBUG -DH5S_DEBUG -DH5T_DEBUG -DH5V_DEBUG -DH5Z_DEBUG -DH5_DEBUG_API -Wall -Wextra -MT H5I.lo -MD -MP -MF .deps/H5I.Tpo -c H5I.c  -fno-common -DPIC -o .libs/H5I.o
H5I.c:249:22: warning: comparison of constant 127 with expression of type
      'H5I_type_t' (aka 'enum H5I_type_t') is always true
      [-Wtautological-constant-out-of-range-compare]
    if(H5I_next_type < H5I_MAX_NUM_TYPES) {
       ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
H5I.c:326:47: warning: comparison of constant 127 with expression of type
      'const H5I_type_t' (aka 'const enum H5I_type_t') is always true
      [-Wtautological-constant-out-of-range-compare]
    HDassert(cls->type_id > 0 && cls->type_id < H5I_MAX_NUM_TYPES);