From: John Wolfe Date: Wed, 30 Jun 2021 18:37:27 +0000 (-0700) Subject: Changes to a common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.0.0~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac7706c44c4d29f38e8d1c7d2ac9cf45521cf4f;p=thirdparty%2Fopen-vm-tools.git Changes to a 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 5a2e658be..71a581d19 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -892,4 +892,17 @@ typedef int pid_t; #define VMW_CLANG_ANALYZER_NORETURN() ((void)0) #endif +/* VMW_FALLTHROUGH + * + * Instructs GCC 9 and above 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 __GNUC__ >= 9 +#define VMW_FALLTHROUGH __attribute__((fallthrough)) +#else +#define VMW_FALLTHROUGH +#endif + #endif // ifndef _VM_BASIC_DEFS_H_