Browse Source

+ $WARN directive implemented fixes bug #3939

git-svn-id: trunk@65 -
florian 20 years ago
parent
commit
d01bde1a83
3 changed files with 9 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 1 0
      compiler/scandir.pas
  3. 7 0
      tests/webtbs/tw3939.pp

+ 1 - 0
.gitattributes

@@ -6109,6 +6109,7 @@ tests/webtbs/tw3893.pp svneol=native#text/plain
 tests/webtbs/tw3898.pp svneol=native#text/plain
 tests/webtbs/tw3899.pp svneol=native#text/plain
 tests/webtbs/tw3900.pp svneol=native#text/plain
+tests/webtbs/tw3939.pp svneol=native#text/plain
 tests/webtbs/tw3953a.pp svneol=native#text/plain
 tests/webtbs/tw3953b.pp svneol=native#text/plain
 tests/webtbs/tw3967.pp svneol=native#text/plain

+ 1 - 0
compiler/scandir.pas

@@ -1163,6 +1163,7 @@ implementation
         AddDirective('VARSTRINGCHECKS',directive_all, @dir_varstringchecks);
         AddDirective('VERSION',directive_all, @dir_version);
         AddDirective('WAIT',directive_all, @dir_wait);
+        AddDirective('WARN',directive_all, @dir_warnings);
         AddDirective('WARNING',directive_all, @dir_warning);
         AddDirective('WARNINGS',directive_all, @dir_warnings);
         AddDirective('WEAKPACKAGEUNIT',directive_all, @dir_weakpackageunit);

+ 7 - 0
tests/webtbs/tw3939.pp

@@ -0,0 +1,7 @@
+{$warn+}
+{$warnings-}
+{$warn-}
+{$warnings+}
+begin
+end.
+