From: Kruti Date: Mon, 19 Feb 2024 14:32:44 +0000 (-0800) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.4.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777dc80ddfcf8980c055ab33091200923a06ab67;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index 04bb3d061..4a210be23 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -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()