Blame gl/arg-nonnull.h

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