Explorar o código

fcl-passrc: nicer warning on readonly letter switch

git-svn-id: trunk@39127 -
Mattias Gaertner %!s(int64=7) %!d(string=hai) anos
pai
achega
414653eac6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-passrc/src/pscanner.pp

+ 1 - 1
packages/fcl-passrc/src/pscanner.pp

@@ -3220,7 +3220,7 @@ begin
     if bs in FReadOnlyBoolSwitches then
       begin
       DoLog(mtWarning,nWarnIllegalCompilerDirectiveX,sWarnIllegalCompilerDirectiveX,
-        [Letter]);
+        [Letter+BoolToStr(Enable,'+','-')]);
       exit;
       end;
     if Enable then