mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 18:08:15 +02:00
* do not generate var paras for void* if -w is used, resolves #31425
git-svn-id: trunk@35475 -
This commit is contained in:
parent
cc81abdd83
commit
81c5d63d4e
@ -690,8 +690,10 @@ program h2pas;
|
||||
(* is this a good method ?? *)
|
||||
if varpara and
|
||||
(p^.p1^.p1^.typ=t_pointerdef) and
|
||||
(p^.p1^.p1^.p1^.typ=t_id) and
|
||||
(pos('CHAR',uppercase(p^.p1^.p1^.p1^.str))<>0) then
|
||||
(((p^.p1^.p1^.p1^.typ=t_id) and
|
||||
(pos('CHAR',uppercase(p^.p1^.p1^.p1^.str))<>0)) or
|
||||
((p^.p1^.p1^.p1^.typ=t_void))
|
||||
) then
|
||||
varpara:=false;
|
||||
if varpara then
|
||||
begin
|
||||
|
@ -686,8 +686,10 @@ program h2pas;
|
||||
(* is this a good method ?? *)
|
||||
if varpara and
|
||||
(p^.p1^.p1^.typ=t_pointerdef) and
|
||||
(p^.p1^.p1^.p1^.typ=t_id) and
|
||||
(pos('CHAR',uppercase(p^.p1^.p1^.p1^.str))<>0) then
|
||||
(((p^.p1^.p1^.p1^.typ=t_id) and
|
||||
(pos('CHAR',uppercase(p^.p1^.p1^.p1^.str))<>0)) or
|
||||
((p^.p1^.p1^.p1^.typ=t_void))
|
||||
) then
|
||||
varpara:=false;
|
||||
if varpara then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user