svn commit: r1933877 - subversion/trunk/build/ac-macros

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177804540122.3281015.1210763714110262809@svn03-he-fi>
Author: brane
Date: Wed May  6 05:30:01 2026
New Revision: 1933877

Log:
Follow up to r1933796: Silence more warnings from JavaHL in non-debug mode.

* build/ac-macros/java.m4 (SVN_FIND_JDK): Reverse the sense of -Xlint:-options.
   Silence deprecation and similar warnings from the org.tigris compatibility
   package in non-debug mode, too.

Modified:
   subversion/trunk/build/ac-macros/java.m4

Modified: subversion/trunk/build/ac-macros/java.m4
==============================================================================
--- subversion/trunk/build/ac-macros/java.m4	Wed May  6 05:14:45 2026	(r1933876)
+++ subversion/trunk/build/ac-macros/java.m4	Wed May  6 05:30:01 2026	(r1933877)
@@ -178,15 +178,12 @@ AC_DEFUN(SVN_FIND_JDK,
 
       if test "$enable_debugging" = "yes"; then
         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
-        if test -z "$JAVAC_COMPAT_FLAGS"; then
-          JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
-        fi
       else
         dnl Ignore warnings about deprecated version 8 (from --release 8)
-        JAVAC_FLAGS="-Xlint:options"
-        if test -z "$JAVAC_COMPAT_FLAGS"; then
-          JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS"
-        fi
+        JAVAC_FLAGS="-Xlint:-options $JAVAC_FLAGS"
+      fi
+      if test -z "$JAVAC_COMPAT_FLAGS"; then
+        JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
       fi
     fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.