]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Remove long-deprecated options --Werror and --Wno-error.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 26 Nov 2010 15:04:06 +0000 (16:04 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Nov 2010 10:05:52 +0000 (11:05 +0100)
These options has been deprecated at least since commit
"Release-1-6-1b-35-gc037f20", dated 2002-07-06.

* automake.in (parse_arguments): Do not recognize anymore options
`--Werror' and `--Wno-error' as synonyms of respectively `-Werror'
and `-Wno-error'.
* tests/werror.test: Update: use `-Werror' instead of `--Werror'.
* NEWS: Update.

ChangeLog
NEWS
automake.in
tests/werror.test

index 278b0d0c7d41898c82ff020a3bc32f83a1e845dd..40e0ed99e8589c8a4899ac4df18f692cdd9f0bc8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-11-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       Remove long-deprecated options --Werror and --Wno-error.
+       These options has been deprecated at least since commit
+       "Release-1-6-1b-35-gc037f20", dated 2002-07-06.
+       * automake.in (parse_arguments): Do not recognize anymore options
+       `--Werror' and `--Wno-error' as synonyms of respectively `-Werror'
+       and `-Wno-error'.
+       * tests/werror.test: Update: use `-Werror' instead of `--Werror'.
+       * NEWS: Update.
+
 2010-11-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        Fix spurious failures in `silent*.test' for $CC != gcc
diff --git a/NEWS b/NEWS
index 649bee9bc90c343f647ad6826fe8f5439b4f5e7e..5e243130a05bbcc25c731fcf5db4fbee0cbc446e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,7 +3,8 @@ New in 1.11a:
 * Changes to automake:
 
   - automake now generates silenced rules for texinfo outputs.
-  - The deprecated option `--output-dir' has been removed.
+  - The deprecated options `--output-dir', `--Werror' and `--Wno-error'
+    have been removed.
 
 * New targets:
 
index 5c44767e486b16c9be2c0514f608dd4cb721b8e0..27904f01e932759b82af5bfb3c474f641dcc7a7d 100644 (file)
@@ -8464,10 +8464,6 @@ sub parse_arguments ()
      'c|copy'          => \$copy_missing,
      'v|verbose'       => sub { setup_channel 'verb', silent => 0; },
      'W|warnings=s'     => \&parse_warnings,
-     # These long options (--Werror and --Wno-error) for backward
-     # compatibility.  Use -Werror and -Wno-error today.
-     'Werror'           => sub { parse_warnings 'W', 'error'; },
-     'Wno-error'        => sub { parse_warnings 'W', 'no-error'; },
      );
   use Getopt::Long;
   Getopt::Long::config ("bundling", "pass_through");
index 355f9d288467a979f9e3152491a1fab2283ecf2a..d1b173caf6b72ec4d9438eef260fc6cb30554ab9 100755 (executable)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Test to make sure --Werror and --add-missing work together.
+# Test to make sure -Werror and --add-missing work together.
 
 . ./defs || Exit 1
 
@@ -25,4 +25,4 @@ set -e
 rm -f install-sh depcomp missing mkinstalldirs
 
 $ACLOCAL
-$AUTOMAKE --Werror --add-missing
+$AUTOMAKE -Werror --add-missing