This should be set on the function prototype itself specifying
all non null arguments e.g.
NONNULL(1) NONNULL(3)
int foo(const char *arg1, int arg2, const char *arg3);
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
#ifndef NONNULL
#if __has_attribute(nonnull) || ( (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) )
-#define NONNULL(param) param __attribute__((nonnull))
+#define NONNULL(param) __attribute__((nonnull(param)))
#else
-#define NONNULL(param) param
+#define NONNULL(param)
#endif
#endif