ignore GCC warnings from Closure Library

Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/ae267c3e
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/ae267c3e
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/ae267c3e

Branch: refs/heads/feature/amf
Commit: ae267c3e58096c6564a4082a309aca1d937e782a
Parents: 4e9dd11
Author: Alex Harui <[email protected]>
Authored: Wed Aug 23 12:07:44 2017 -0700
Committer: Alex Harui <[email protected]>
Committed: Wed Aug 23 12:07:44 2017 -0700

----------------------------------------------------------------------
 .../org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ae267c3e/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
----------------------------------------------------------------------
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
index 05c791b..eea622c 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
@@ -45,6 +45,7 @@ import com.google.javascript.jscomp.DependencyOptions;
 import com.google.javascript.jscomp.DiagnosticGroups;
 import com.google.javascript.jscomp.FlexJSDiagnosticGroups;
 import com.google.javascript.jscomp.ModuleIdentifier;
+import com.google.javascript.jscomp.ShowByPathWarningsGuard;
 import com.google.javascript.jscomp.SourceFile;
 import com.google.javascript.jscomp.SourceMap;
 import com.google.javascript.jscomp.VariableMap;
@@ -428,6 +429,9 @@ public class JSClosureCompilerWrapper
             options_.setOptimizeArgumentsArray(true);
             options_.setGenerateExports(true);
             options_.setExportLocalPropertyDefinitions(true);
+            options_.addWarningsGuard(new ShowByPathWarningsGuard(
+                    new String[] { "goog/", "externs/svg.js" },
+                    ShowByPathWarningsGuard.ShowType.EXCLUDE));
             
             DependencyOptions dopts = new DependencyOptions();
             ArrayList<ModuleIdentifier> entryPoints = new 
ArrayList<ModuleIdentifier>();

Reply via email to