]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti Pendharkar <kp025370@broadcom.com>
Tue, 3 Jun 2025 06:30:25 +0000 (23:30 -0700)
committerKruti Pendharkar <kp025370@broadcom.com>
Tue, 3 Jun 2025 06:30:25 +0000 (23:30 -0700)
open-vm-tools/lib/include/vm_basic_defs.h

index 46e41d0a8a61ed3782df4e85922270e332eacd19..06e030e93b390b896dd85d0e9cbd707c506a7745 100644 (file)
@@ -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_