Blame lib/unused-parameter.h

Packit Service fdd496
/* A C macro for declaring that specific function parameters are not used.
Packit Service fdd496
   Copyright (C) 2008-2017 Free Software Foundation, Inc.
Packit Service fdd496
Packit Service fdd496
   This program is free software: you can redistribute it and/or modify it
Packit Service fdd496
   under the terms of the GNU General Public License as published
Packit Service fdd496
   by the Free Software Foundation; either version 3 of the License, or
Packit Service fdd496
   (at your option) any later version.
Packit Service fdd496
Packit Service fdd496
   This program is distributed in the hope that it will be useful,
Packit Service fdd496
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service fdd496
   General Public License for more details.
Packit Service fdd496
Packit Service fdd496
   You should have received a copy of the GNU General Public License
Packit Service fdd496
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
/* _GL_UNUSED_PARAMETER is a marker that can be appended to function parameter
Packit Service fdd496
   declarations for parameters that are not used.  This helps to reduce
Packit Service fdd496
   warnings, such as from GCC -Wunused-parameter.  The syntax is as follows:
Packit Service fdd496
       type param _GL_UNUSED_PARAMETER
Packit Service fdd496
   or more generally
Packit Service fdd496
       param_decl _GL_UNUSED_PARAMETER
Packit Service fdd496
   For example:
Packit Service fdd496
       int param _GL_UNUSED_PARAMETER
Packit Service fdd496
       int *(*param)(void) _GL_UNUSED_PARAMETER
Packit Service fdd496
   Other possible, but obscure and discouraged syntaxes:
Packit Service fdd496
       int _GL_UNUSED_PARAMETER *(*param)(void)
Packit Service fdd496
       _GL_UNUSED_PARAMETER int *(*param)(void)
Packit Service fdd496
 */
Packit Service fdd496
#ifndef _GL_UNUSED_PARAMETER
Packit Service fdd496
# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
Packit Service fdd496
#  define _GL_UNUSED_PARAMETER __attribute__ ((__unused__))
Packit Service fdd496
# else
Packit Service fdd496
#  define _GL_UNUSED_PARAMETER
Packit Service fdd496
# endif
Packit Service fdd496
#endif