- gcc itself can only warn on literal NULL's passed where nonnull is
expected but static analyzers can make better use of the info
#endif /* __GNUC__ */
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
-# define RPM_GNUC_MAY_ALIAS __attribute__((may_alias))
+#define RPM_GNUC_MAY_ALIAS __attribute__((may_alias))
+#define RPM_GNUC_NONNULL( ... ) \
+ __attribute__((__nonnull__ (__VA_ARGS__)))
#else
-# define RPM_GNUC_MAY_ALIAS
+#define RPM_GNUC_MAY_ALIAS
+#define RPM_GNUC_NONNULL( ... )
#endif
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)