Mercurial > octave
changeset 32541:9357c0fdd2c1 stable
fix variadic macro definition
This issue came up in bug #64977.
* oct-parse.yy (OCTAVE_YYUSE): Eliminate named argument that is never
used in variadic macro definition. This change avoids a possible
warning if the macro is used with only one argument.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 05 Dec 2023 13:25:53 -0500 |
parents | 06a541ee4f05 |
children | bbf9f4c2ccd5 019af368d790 |
files | libinterp/parse-tree/oct-parse.yy |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Tue Dec 05 13:21:10 2023 -0500 +++ b/libinterp/parse-tree/oct-parse.yy Tue Dec 05 13:25:53 2023 -0500 @@ -99,7 +99,7 @@ // need to do is mention the symantic value somewhere in the rule. It // doesn't actually need to be used to avoid the Bison warning, so just // define this macro to discard its parameter. -#define OCTAVE_YYUSE(X, ...) +#define OCTAVE_YYUSE(...) #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) // Disable this warning for code that is generated by Bison,