[Crosstoolchain-logs] [device-tree-compiler] 348/357: dtc: Add -Wredundant-decls (resend)

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 341df2bdc3f9664587a57f947249c3208da77c9b
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Fri Apr 30 15:27:32 2010 +1000

    dtc: Add -Wredundant-decls (resend)
    
    We are almost clean already with the -Wredundant-decls warning.  The
    only exception is a declaration for isatty() inside the flex-generated
    code.  This can be removed by using flex's "never-interactive" option,
    which we probably should be using anyway, since we never parse
    interactively in the sense that this option implies.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 Makefile              | 2 +-
 convert-dtsv0-lexer.l | 2 +-
 dtc-lexer.l           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index b49aebb..af467ef 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ CONFIG_LOCALVERSION =
 
 CPPFLAGS = -I libfdt
 WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
-	-Wstrict-prototypes -Wmissing-prototypes
+	-Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls
 CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)
 
 BISON = bison
diff --git a/convert-dtsv0-lexer.l b/convert-dtsv0-lexer.l
index edb9110..89d540a 100644
--- a/convert-dtsv0-lexer.l
+++ b/convert-dtsv0-lexer.l
@@ -17,7 +17,7 @@
  *                                                                   USA
  */
 
-%option noyywrap nounput noinput
+%option noyywrap nounput noinput never-interactive
 
 %x INCLUDE
 %x BYTESTRING
diff --git a/dtc-lexer.l b/dtc-lexer.l
index 3c3434c..f8953f4 100644
--- a/dtc-lexer.l
+++ b/dtc-lexer.l
@@ -18,7 +18,7 @@
  *                                                                   USA
  */
 
-%option noyywrap nounput noinput
+%option noyywrap nounput noinput never-interactive
 
 %x INCLUDE
 %x BYTESTRING

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list