mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Revert the last two commits
They should not have been pushed, sorry about that. This reverts - commit8575bd06ae. - commit55bf52860e.
This commit is contained in:
@@ -95,7 +95,7 @@ AC_ARG_ENABLE([gcc-warnings],
|
|||||||
AM_CONDITIONAL([ENABLE_GCC_WARNINGS], [test "$enable_gcc_warnings" = yes])
|
AM_CONDITIONAL([ENABLE_GCC_WARNINGS], [test "$enable_gcc_warnings" = yes])
|
||||||
if test "$enable_gcc_warnings" = yes; then
|
if test "$enable_gcc_warnings" = yes; then
|
||||||
warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align
|
warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align
|
||||||
-fparse-all-comments -Wdocumentation -Wextra-semi
|
-fparse-all-comments -Wdocumentation
|
||||||
-Wformat -Wnull-dereference -Wpointer-arith -Wshadow -Wwrite-strings'
|
-Wformat -Wnull-dereference -Wpointer-arith -Wshadow -Wwrite-strings'
|
||||||
warn_c='-Wbad-function-cast -Wstrict-prototypes'
|
warn_c='-Wbad-function-cast -Wstrict-prototypes'
|
||||||
warn_cxx='-Wextra-semi -Wnoexcept'
|
warn_cxx='-Wextra-semi -Wnoexcept'
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include "quotearg.h"
|
#include "quotearg.h"
|
||||||
#include "vasnprintf.h"
|
#include "vasnprintf.h"
|
||||||
|
|
||||||
#include "complain.h"
|
|
||||||
#include "files.h"
|
#include "files.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -98,13 +97,6 @@ fixits_run (void)
|
|||||||
if (!fixits)
|
if (!fixits)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!update_flag)
|
|
||||||
{
|
|
||||||
complain (NULL, Wother,
|
|
||||||
_("some fixes can be applied. Rerun with option '--update'."));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is not unlike what is done in location_caret. */
|
/* This is not unlike what is done in location_caret. */
|
||||||
uniqstr input = ((fixit *) gl_list_get_at (fixits, 0))->location.start.file;
|
uniqstr input = ((fixit *) gl_list_get_at (fixits, 0))->location.start.file;
|
||||||
/* Backup the file. */
|
/* Backup the file. */
|
||||||
|
|||||||
@@ -105,7 +105,8 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
/* Fix input file now, even if there are errors: that's less
|
/* Fix input file now, even if there are errors: that's less
|
||||||
warnings in the following runs. */
|
warnings in the following runs. */
|
||||||
fixits_run ();
|
if (update_flag)
|
||||||
|
fixits_run ();
|
||||||
fixits_free ();
|
fixits_free ();
|
||||||
|
|
||||||
if (complaint_status == status_complaint)
|
if (complaint_status == status_complaint)
|
||||||
|
|||||||
Reference in New Issue
Block a user