]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
Mark functions containing only static assertions intentionally unused
[wimlib] / include / wimlib / compiler.h
index 533930396e0134e657c80486bf8954f8f87baeb9..102deb73d2a1a4a72aa90c58b6d1128f21cd75df 100644 (file)
 /* TODO: _format_attribute is currently ignored.  */
 #define _format_attribute(type, format_str, format_start)
 
+/* Hint that the annotated function is intentionally not used.  This might be
+ * the case if the function contains only static assertions.  */
+#define _unused_attribute      __attribute__((unused))
+
 /* Endianness definitions.  Either CPU_IS_BIG_ENDIAN or CPU_IS_LITTLE_ENDIAN is
  * set to 1.  The other is set to 0.  Note that newer gcc supports
  * __BYTE_ORDER__ for easily determining the endianness; older gcc doesn't.  In