diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-05-18 00:46:52 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-05-18 00:57:03 +0300 |
commit | 144a9c52e58b6386dd6929c1d95a11d04bc8eaa5 (patch) | |
tree | b633d50f211b16604dc3aed9ad4fc7f563ebc7b2 /contrib/tools/bison/lib/platform/win64/unused-parameter.h | |
parent | 6bb04f40e291c6fc3ac8e556d561d59eed0a49b9 (diff) | |
download | ydb-144a9c52e58b6386dd6929c1d95a11d04bc8eaa5.tar.gz |
Flatten bison/gnulib/src to bison/lib to match upstream layout
2f47b5eab59c8031971bd995b703c854fd6f106d
Diffstat (limited to 'contrib/tools/bison/lib/platform/win64/unused-parameter.h')
-rw-r--r-- | contrib/tools/bison/lib/platform/win64/unused-parameter.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/tools/bison/lib/platform/win64/unused-parameter.h b/contrib/tools/bison/lib/platform/win64/unused-parameter.h new file mode 100644 index 0000000000..53474b5754 --- /dev/null +++ b/contrib/tools/bison/lib/platform/win64/unused-parameter.h @@ -0,0 +1,20 @@ +/* _GL_UNUSED_PARAMETER is a marker that can be appended to function parameter + declarations for parameters that are not used. This helps to reduce + warnings, such as from GCC -Wunused-parameter. The syntax is as follows: + type param _GL_UNUSED_PARAMETER + or more generally + param_decl _GL_UNUSED_PARAMETER + For example: + int param _GL_UNUSED_PARAMETER + int *(*param)(void) _GL_UNUSED_PARAMETER + Other possible, but obscure and discouraged syntaxes: + int _GL_UNUSED_PARAMETER *(*param)(void) + _GL_UNUSED_PARAMETER int *(*param)(void) + */ +#ifndef _GL_UNUSED_PARAMETER +# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED_PARAMETER __attribute__ ((__unused__)) +# else +# define _GL_UNUSED_PARAMETER +# endif +#endif |