From: Kruti Pendharkar Date: Tue, 3 Jun 2025 06:30:25 +0000 (-0700) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-13.1.0~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efb896c800fcdd685c079a3899f8b182bf9bd249;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 46e41d0a8..06e030e93 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -1061,4 +1061,18 @@ typedef int pid_t; #define VMW_FALLTHROUGH() #endif + +/* + * VMW_CLANG_SUPPRESS + * + * Instructs clang static analyzer to suppress unwanted warnings related to the code + * block following this macro. + */ +#if defined(__clang__) && (__clang_major__ >= 18) + #define VMW_CLANG_SUPPRESS [[clang::suppress]] +#else + #define VMW_CLANG_SUPPRESS +#endif + + #endif // ifndef _VM_BASIC_DEFS_H_