]> 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 c96f62a668ea031e80fcc5dfb4cc25fa785af141..b1c0719bfc16b8c81801ba62713e3f9ada1c5425 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2022 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -361,13 +361,16 @@ void WarningThrottled(uint32 *count, const char *fmt, ...) PRINTF_DECL(2, 3);
  *
  */
 
-# if defined VMKPANIC || defined VMM
+# if defined VMKPANIC
 #  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())
 # else
  // keep debug definition
 # endif