Avoid gcc 11 misleading indentation warning in generated code
Closes https://github.com/swig/swig/pull/2074
This commit is contained in:
parent
42ed181e08
commit
6c59cae799
2 changed files with 7 additions and 1 deletions
|
|
@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
|||
Version 4.1.0 (in progress)
|
||||
===========================
|
||||
|
||||
2021-10-03: ajrh1
|
||||
[Perl] #2074: Avoid -Wmisleading-indentation in generated code
|
||||
when using gcc11.
|
||||
|
||||
2021-10-03: jschueller
|
||||
[CMake] #2065: Add option to enable or disable PCRE support.
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,9 @@
|
|||
%define %set_output(obj) $result = obj; argvi++ %enddef
|
||||
|
||||
/* append output */
|
||||
%define %append_output(obj) if (argvi >= items) EXTEND(sp, argvi+1); %set_output(obj) %enddef
|
||||
%define %append_output(obj)
|
||||
if (argvi >= items) EXTEND(sp, argvi+1);
|
||||
%set_output(obj) %enddef
|
||||
|
||||
/* variable output */
|
||||
%define %set_varoutput(obj) sv_setsv($result,obj) %enddef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue