2
0
Эх сурвалжийг харах

Remove two warnings about missing case (others are still present in ppudump.pp source)

git-svn-id: trunk@42085 -
pierre 6 жил өмнө
parent
commit
c0f064a35c

+ 1 - 0
compiler/utils/ppuutils/ppudump.pp

@@ -1176,6 +1176,7 @@ begin
      break;
      break;
     write([s,'(',slstr[sl],') ']);
     write([s,'(',slstr[sl],') ']);
     case sl of
     case sl of
+      sl_none : ;
       sl_call,
       sl_call,
       sl_load,
       sl_load,
       sl_subscript :
       sl_subscript :

+ 2 - 1
compiler/utils/ppuutils/ppuout.pp

@@ -473,7 +473,7 @@ const
     ('dynamic');
     ('dynamic');
 
 
   ConstTypeNames: array[TPpuConstType] of string =
   ConstTypeNames: array[TPpuConstType] of string =
-    ('', 'int', 'float', 'string', 'set', 'pointer');
+    ('unknown', 'int', 'float', 'string', 'set', 'pointer');
 
 
   OrdTypeNames: array[TPpuOrdType] of string =
   OrdTypeNames: array[TPpuOrdType] of string =
     ('void', 'uint', 'sint', 'pasbool', 'bool', 'char', 'currency');
     ('void', 'uint', 'sint', 'pasbool', 'bool', 'char', 'currency');
@@ -695,6 +695,7 @@ begin
     WriteStr('ValType', ConstTypeNames[ConstType]);
     WriteStr('ValType', ConstTypeNames[ConstType]);
     s:='Value';
     s:='Value';
     case ConstType of
     case ConstType of
+      ctUnknown: ;
       ctInt:
       ctInt:
         WriteInt(s, VInt);
         WriteInt(s, VInt);
       ctFloat:
       ctFloat: