mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 00:50:49 +02:00
* better check if we are in the main program which never returns
git-svn-id: trunk@34938 -
This commit is contained in:
parent
e33b2920dc
commit
b527bab087
@ -1338,7 +1338,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
include(flags,pi_do_call);
|
include(flags,pi_do_call);
|
||||||
{ the main program never returns due to the do_exit call }
|
{ the main program never returns due to the do_exit call }
|
||||||
if not(current_module.islibrary) then
|
if not(current_module.islibrary) and (procdef.proctypeoption=potype_proginit) then
|
||||||
include(procdef.procoptions,po_noreturn);
|
include(procdef.procoptions,po_noreturn);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user