瀏覽代碼

* fix for bug #1023

pierre 25 年之前
父節點
當前提交
74f131b173
共有 1 個文件被更改,包括 12 次插入2 次删除
  1. 12 2
      compiler/pdecl.pas

+ 12 - 2
compiler/pdecl.pas

@@ -909,7 +909,14 @@ unit pdecl;
              consume(_ID)
            else
              begin
-                getlabel(hl);
+                if (cs_create_smart in aktmoduleswitches) then
+                  begin
+                    getdatalabel(hl);
+                    { we still want a warning if unused }
+                    hl^.refs:=0;
+                  end
+                else
+                  getlabel(hl);
                 symtablestack^.insert(new(plabelsym,init(pattern,hl)));
                 consume(token);
              end;
@@ -1250,7 +1257,10 @@ unit pdecl;
 end.
 {
   $Log$
-  Revision 1.188  2000-06-23 21:34:09  pierre
+  Revision 1.189  2000-07-03 13:26:48  pierre
+   * fix for bug 1023
+
+  Revision 1.188  2000/06/23 21:34:09  pierre
    * align all variants to same start address
 
   Revision 1.187  2000/06/23 20:14:39  peter