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

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"