]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 29 Jul 2022 03:03:42 +0000 (20:03 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 29 Jul 2022 03:03:42 +0000 (20:03 -0700)
open-vm-tools/lib/include/vm_assert.h

index ad4405df3bff4afd2185d1240812525f8db1aada..d633af483f5b4beaadef126a28a0a883ac85be1d 100644 (file)
@@ -361,19 +361,12 @@ void WarningThrottled(uint32 *count, const char *fmt, ...) PRINTF_DECL(2, 3);
  * compiler is known to support it.
  */
 
-# if defined VMKPANIC
+# if defined VMKPANIC || defined VMM || defined ULM_ESX
 #  undef  NOT_REACHED
-#  if defined __GNUC__ && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 5)
-#   define NOT_REACHED() (__builtin_unreachable())
-#  else
-#   define NOT_REACHED() ((void)0)
-#  endif
-# elif defined VMM || defined ULM_ESX
-#  undef  NOT_REACHED
-#  define NOT_REACHED() (__builtin_unreachable())
+#  define NOT_REACHED() __builtin_unreachable()
 # elif defined ULM_WIN
 #  undef  NOT_REACHED
-#  define NOT_REACHED() (__assume(0))
+#  define NOT_REACHED() __assume(0)
 # else
  // keep debug definition
 # endif