소스 검색

+ initialize variables, so compilation with -O3 works

git-svn-id: trunk@45141 -
florian 5 년 전
부모
커밋
e7f7927ca9
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      compiler/pgenutil.pas

+ 3 - 4
compiler/pgenutil.pas

@@ -474,6 +474,8 @@ uses
         validparam : boolean;
       begin
         result:=true;
+        prettyname:='';
+        prettynamepart:='';
         if paramlist=nil then
           internalerror(2012061401);
         { set the block type to type, so that the parsed type are returned as
@@ -501,10 +503,7 @@ uses
               end;
           end
         else
-          begin
-            specializename:='$';
-            prettyname:='';
-          end;
+          specializename:='$';
         while not (token in [_GT,_RSHARPBRACKET]) do
           begin
             { "first" is set to false at the end of the loop! }