]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Move ISC_NONSTRING from util.h to attributes.h
authorOndřej Surý <ondrej@isc.org>
Fri, 20 Mar 2026 13:03:05 +0000 (14:03 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 23 Mar 2026 10:06:28 +0000 (11:06 +0100)
ISC_NONSTRING is a compiler attribute macro and belongs alongside
the other attribute definitions in attributes.h, not in util.h.

lib/isc/include/isc/attributes.h
lib/isc/include/isc/util.h

index 03c84ae4979cbe24c8483cf6da4025b75739f3bb..abad670af892846aa188dd1713fb49a44c95ed68 100644 (file)
 #else
 #define ISC_ATTR_NONNULL(...)
 #endif
+
+#if __GNUC__ >= 8 && !defined(__clang__)
+#define ISC_NONSTRING __attribute__((nonstring))
+#else /* if __GNUC__ >= 8 && !defined(__clang__) */
+#define ISC_NONSTRING
+#endif /* __GNUC__ */
index 702fd5aef3e4dd2ca4109752e9c99a216a0d8ac2..43026a01ef4e2b09961547fc79f0ac5835574b1d 100644 (file)
  */
 #define UNUSED(x) (void)(x)
 
-#if __GNUC__ >= 8 && !defined(__clang__)
-#define ISC_NONSTRING __attribute__((nonstring))
-#else /* if __GNUC__ >= 8 && !defined(__clang__) */
-#define ISC_NONSTRING
-#endif /* __GNUC__ */
-
 /*%
  * The opposite: silent warnings about stored values which are never read.
  */