소스 검색

* better check if we are in the main program which never returns

git-svn-id: trunk@34938 -
florian 8 년 전
부모
커밋
b527bab087
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/psub.pas

+ 1 - 1
compiler/psub.pas

@@ -1338,7 +1338,7 @@ implementation
           begin
             include(flags,pi_do_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);
           end;