Skip to content

Commit b136e5d

Browse files
committed
Resolve icc 2021 warning about HTS_DEPRECATED_ENUM.
In file included from htslib/synced_bcf_reader.h(59), from bcf_sr_sort.h(37), from bcf_sr_sort.c(31): htslib/hts.h(204): warning #2650: attributes ignored here json HTS_DEPRECATED_ENUM("Use htsExactFormat 'htsget' instead") = htsget, Note that the normal HTS_DEPRECATED is fine, so it appears to only be problematic when used with an enum. (It's possible this is a new issue in icc 2021, but the licenses have expired for all the old installs.)
1 parent 7ecf4e4 commit b136e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htslib/hts_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ DEALINGS IN THE SOFTWARE. */
7979
#define HTS_DEPRECATED(message)
8080
#endif
8181

82-
#if HTS_COMPILER_HAS(__deprecated__) || HTS_GCC_AT_LEAST(6,4)
82+
#if (HTS_COMPILER_HAS(__deprecated__) || HTS_GCC_AT_LEAST(6,4)) && !defined(__ICC)
8383
#define HTS_DEPRECATED_ENUM(message) __attribute__ ((__deprecated__ (message)))
8484
#else
8585
#define HTS_DEPRECATED_ENUM(message)

0 commit comments

Comments
 (0)