Blame gnulib/lib/arg-nonnull.h

Packit Service a2ae7a
/* A C macro for declaring that specific arguments must not be NULL.
Packit Service a2ae7a
   Copyright (C) 2009-2019 Free Software Foundation, Inc.
Packit Service a2ae7a
Packit Service a2ae7a
   This program is free software: you can redistribute it and/or modify it
Packit Service a2ae7a
   under the terms of the GNU Lesser General Public License as published
Packit Service a2ae7a
   by the Free Software Foundation; either version 2.1 of the License, or
Packit Service a2ae7a
   (at your option) any later version.
Packit Service a2ae7a
Packit Service a2ae7a
   This program is distributed in the hope that it will be useful,
Packit Service a2ae7a
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service a2ae7a
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service a2ae7a
   Lesser General Public License for more details.
Packit Service a2ae7a
Packit Service a2ae7a
   You should have received a copy of the GNU Lesser General Public License
Packit Service a2ae7a
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
Packit Service a2ae7a
Packit Service a2ae7a
/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
Packit Service a2ae7a
   that the values passed as arguments n, ..., m must be non-NULL pointers.
Packit Service a2ae7a
   n = 1 stands for the first argument, n = 2 for the second argument etc.  */
Packit Service a2ae7a
#ifndef _GL_ARG_NONNULL
Packit Service a2ae7a
# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
Packit Service a2ae7a
#  define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
Packit Service a2ae7a
# else
Packit Service a2ae7a
#  define _GL_ARG_NONNULL(params)
Packit Service a2ae7a
# endif
Packit Service a2ae7a
#endif