From 5c84305817e5be54e77b63831c1f15f67c090f28 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sat, 21 Mar 2026 15:48:35 +0000 Subject: [PATCH] Hide the __attribute__() definition from splint so it doesn't generate spurious warnings. --- src/include/config-aux.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/config-aux.h b/src/include/config-aux.h index 2dcbc27..45fed1b 100644 --- a/src/include/config-aux.h +++ b/src/include/config-aux.h @@ -52,7 +52,9 @@ typedef bool _Bool; # endif #endif +#ifndef SPLINT /* Remove __attribute__(()) if not using GCC. */ #ifndef __GNUC__ #define __attribute__(x) /* GCC-only feature */ #endif +#endif