]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti <kpendharkar@vmware.com>
Mon, 19 Feb 2024 14:32:44 +0000 (06:32 -0800)
committerKruti <kpendharkar@vmware.com>
Mon, 19 Feb 2024 14:32:44 +0000 (06:32 -0800)
open-vm-tools/lib/include/vm_basic_defs.h

index 04bb3d061b37cbe0557a09aac0481e8627361ca6..4a210be23231e952626b1a3caf4f051a80ce95fd 100644 (file)
@@ -969,12 +969,13 @@ typedef int pid_t;
 
 /* VMW_FALLTHROUGH
  *
- *   Instructs GCC 9 and above to not warn when a case label of a
+ *   Instructs capable compilers to not warn when a case label of a
  *   'switch' statement falls through to the next label.
  *
- *   If not GCC 9 or above, expands to nothing.
+ *   If not a matched compiler, expands to nothing.
  */
-#if __GNUC__ >= 9
+#if (defined(__GNUC__) && (__GNUC__ >= 9)) ||           \
+    (defined(__clang__) && (__clang_major__ >= 13))
 #define VMW_FALLTHROUGH() __attribute__((fallthrough))
 #else
 #define VMW_FALLTHROUGH()