]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
cleanups
[wimlib] / include / wimlib / compiler.h
index fd8942f15bf025bec6aa5485fcfadc07402d2096..221df6881e88676a9ba40a82693210d9216c2ccc 100644 (file)
@@ -15,6 +15,7 @@
 #              define WIMLIBAPI __attribute__((visibility("default")))
 #      endif
 #      define _always_inline_attribute inline __attribute__((always_inline))
+#      define _no_inline_attribute __attribute__((noinline))
 #      define _packed_attribute __attribute__((packed))
 #      define _format_attribute(type, format_str, args_start) \
                        /*__attribute__((format(type, format_str, args_start))) */
@@ -34,6 +35,7 @@
 #else
 #      define WIMLIBAPI
 #      define _always_inline_attribute inline
+#      define _no_inline_attribute
 #      define _format_attribute(type, format_str, args_start)
 #      define _cold_attribute
 #      define _packed_attribute
 #      define is_constant(x) (0)
 #endif /* __GNUC__ */
 
+#ifdef __CHECKER__
+#  define _bitwise_attr        __attribute__((bitwise))
+#  define _force_attr  __attribute__((force))
+#else
+#  define _bitwise_attr
+#  define _force_attr
+#endif
+
 #endif /* _WIMLIB_COMPILER_H */