Blame gl/arg-nonnull.h

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