]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
minor : change test order
authorYann Collet <cyan@fb.com>
Fri, 16 Oct 2020 20:26:47 +0000 (13:26 -0700)
committerYann Collet <cyan@fb.com>
Fri, 16 Oct 2020 20:26:47 +0000 (13:26 -0700)
to reduce a warning with `clang` on Windows

lib/dictBuilder/zdict.h

index ff2e77faf773dcd1ff9695fe7f2d8b6e4b6c359e..b782993f9d2e505601a55434223812f90ef35b33 100644 (file)
@@ -279,7 +279,7 @@ ZDICTLIB_API size_t ZDICT_trainFromBuffer_legacy(
 #  define ZDICT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
 #  if defined (__cplusplus) && (__cplusplus >= 201402) /* C++14 or greater */
 #    define ZDICT_DEPRECATED(message) [[deprecated(message)]] ZDICTLIB_API
-#  elif (ZDICT_GCC_VERSION >= 405) || defined(__clang__)
+#  elif defined(__clang__) || (ZDICT_GCC_VERSION >= 405)
 #    define ZDICT_DEPRECATED(message) ZDICTLIB_API __attribute__((deprecated(message)))
 #  elif (ZDICT_GCC_VERSION >= 301)
 #    define ZDICT_DEPRECATED(message) ZDICTLIB_API __attribute__((deprecated))