Blame lib/unused-parameter.h

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