maint: fix some syntax-check issues.

* cfg.mk (local-checks-to-skip): Remove
	sc_prohibit_quotearg_without_use, sc_prohibit_strcmp,
	sc_unmarked_diagnostics, sc_useless_cpp_parens.
	(sc_unmarked_diagnostics): Skip DJGPP.
	* data/yacc.c, src/LR0.c, src/closure.c,
	* src/flex-scanner.h, src/gram.c, src/lalr.c,
	* src/print-xml.c, src/print.c, src/print_graph.c,
	* src/reader.c, src/reduce.c, src/tables.c:
	Don't use parens with cpp's defined.
	Remove useless includes.
This commit is contained in:
Akim Demaille
2012-02-18 18:48:33 +01:00
parent 6487c0b370
commit 24bb5f8fb7
13 changed files with 6 additions and 20 deletions

6
cfg.mk
View File

@@ -48,10 +48,7 @@ local-checks-to-skip = \
sc_prohibit_doubled_word \
sc_prohibit_empty_lines_at_EOF \
sc_prohibit_magic_number_exit \
sc_prohibit_quotearg_without_use \
sc_prohibit_strcmp \
sc_unmarked_diagnostics \
sc_useless_cpp_parens
sc_prohibit_strcmp
# The local directory containing the checked-out copy of gnulib used in
# this release. Used solely to get a date for the "announcement" target.
@@ -70,3 +67,4 @@ update-copyright-env = \
exclude_file_name_regexp--sc_space_tab = ^tests/(input|c\+\+)\.at$$
exclude_file_name_regexp--sc_require_config_h_first = \
^(lib/yyerror|data/(glr|yacc))\.c$$
exclude_file_name_regexp--sc_unmarked_diagnostics = ^djgpp/

View File

@@ -2018,7 +2018,7 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
#if ]b4_lac_if([[1]], [[!defined(yyoverflow) || YYERROR_VERBOSE]])[
#if ]b4_lac_if([[1]], [[!defined yyoverflow || YYERROR_VERBOSE]])[
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/

View File

@@ -26,7 +26,6 @@
#include "system.h"
#include <bitset.h>
#include <quotearg.h>
#include "LR0.h"
#include "closure.h"

View File

@@ -24,7 +24,6 @@
#include <bitset.h>
#include <bitsetv-print.h>
#include <bitsetv.h>
#include <quotearg.h>
#include "closure.h"
#include "derives.h"

View File

@@ -51,11 +51,11 @@ int FLEX_PREFIX (lex_destroy) (void);
versions according to the Flex manual) leak memory if yylex_destroy is not
invoked. However, yylex_destroy is not defined before Flex 2.5.9, so give
an implementation here that at least appears to work with Flex 2.5.4. */
#if !defined(YY_FLEX_MAJOR_VERSION) || YY_FLEX_MAJOR_VERSION < 2 \
#if !defined YY_FLEX_MAJOR_VERSION || YY_FLEX_MAJOR_VERSION < 2 \
|| (YY_FLEX_MAJOR_VERSION == 2 \
&& (!defined(YY_FLEX_MINOR_VERSION) || YY_FLEX_MINOR_VERSION < 5 \
&& (!defined YY_FLEX_MINOR_VERSION || YY_FLEX_MINOR_VERSION < 5 \
|| (YY_FLEX_MINOR_VERSION == 5 \
&& (!defined(YY_FLEX_SUBMINOR_VERSION) \
&& (!defined YY_FLEX_SUBMINOR_VERSION \
|| YY_FLEX_SUBMINOR_VERSION < 9))))
# define yylex_destroy() yy_delete_buffer (YY_CURRENT_BUFFER)
#endif

View File

@@ -21,8 +21,6 @@
#include <config.h>
#include "system.h"
#include <quotearg.h>
#include "complain.h"
#include "getargs.h"
#include "gram.h"

View File

@@ -27,7 +27,6 @@
#include <bitset.h>
#include <bitsetv.h>
#include <quotearg.h>
#include "LR0.h"
#include "complain.h"

View File

@@ -23,7 +23,6 @@
#include <stdarg.h>
#include <bitset.h>
#include <quotearg.h>
#include "LR0.h"
#include "closure.h"

View File

@@ -22,7 +22,6 @@
#include "system.h"
#include <bitset.h>
#include <quotearg.h>
#include "LR0.h"
#include "closure.h"

View File

@@ -20,8 +20,6 @@
#include <config.h>
#include "system.h"
#include <quotearg.h>
#include "LR0.h"
#include "closure.h"
#include "complain.h"

View File

@@ -22,7 +22,6 @@
#include "system.h"
#include <quote.h>
#include <quotearg.h>
#include "complain.h"
#include "conflicts.h"

View File

@@ -29,7 +29,6 @@
#include "system.h"
#include <bitset.h>
#include <quotearg.h>
#include "complain.h"
#include "files.h"

View File

@@ -22,7 +22,6 @@
#include "system.h"
#include <bitsetv.h>
#include <quotearg.h>
#include "complain.h"
#include "conflicts.h"