On Mon, Nov 23, 2009 at 06:28:19PM -0500, Mike Frysinger wrote:
> On Monday 23 November 2009 17:58:27 Dmitry Eremin-Solenikov wrote:
> > BTW: do you have a setup where -Werror generated problems? Could you
> > please provide any details/messages/etc.?
> 
> on gentoo with glibc-2.11 and gcc-4.4.2 i get:
> cc1: warnings being treated as errors
> coord-config-lex.c: In function ‘yylex’:
> coord-config-lex.l:56: error: ignoring return value of ‘fwrite’, declared 
> with 
> attribute warn_unused_result
> -mike

Could you please verify that the attached patch fixes the problem for
you?

-- 
With best wishes
Dmitry

>From 4070f5cb2f7e350c3d4999638edb3397ca52f888 Mon Sep 17 00:00:00 2001
From: Dmitry Eremin-Solenikov <[email protected]>
Date: Tue, 24 Nov 2009 02:40:33 +0300
Subject: [PATCH] addrdb: disable default ECHO rule

Disable default ECHO rule to shut up the warning for unused fwrite result

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
---
 addrdb/coord-config-lex.l |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/addrdb/coord-config-lex.l b/addrdb/coord-config-lex.l
index 3714467..6d25c74 100644
--- a/addrdb/coord-config-lex.l
+++ b/addrdb/coord-config-lex.l
@@ -42,6 +42,7 @@
 %option reentrant
 %option bison-bridge bison-locations
 %option warn
+%option nodefault
 
 %%
 [\{\}:;]			return yytext[0];
-- 
1.6.5

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Linux-zigbee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to