Silent some Java warnings during compilation time 11/13111/2
Sylvestre Ledru [Fri, 8 Nov 2013 10:58:27 +0000 (11:58 +0100)]
Change-Id: Ibb3cf8e6bbeec932bb42407babf7544f81b0c2dc

scilab/build.incl.xml

index 8af88ad..2f2478a 100644 (file)
     <!-- Compile sources -->
     <target name="compile" description="Build sources" depends="init">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="compile.classpath" deprecation="on" debug="${build.debug}" verbose="off" listfiles="on" includeAntRuntime="no" source="6" target="6" encoding="utf-8">
-            <compilerarg value="-Xlint"/>
+            <compilerarg value="-Xlint" />
+            <!--  Silent some warnings -->
+            <compilerarg value="-Xlint:-unchecked" />
+             <!-- Too borring and painful to fix -->
+            <compilerarg value="-Xlint:-rawtypes" />
+             <!-- Too borring and painful to fix -->
+            <compilerarg value="-Xlint:-path" />
+             <!--  Silent the bad path element -->
+            <compilerarg value="-Xlint:-serial" />
+             <!--  Silent warning about the serializable -->
+            <compilerarg value="-Xlint:-options" />
+             <!-- Silent 'bootstrap class path not set in conjunction with -source 1.6'. We don't want to manage the detection of rt.jar. See https://blogs.oracle.com/darcy/entry/bootclasspath_older_source -->
         </javac>
     </target>