This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: binutils warning fixes
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Thu, 17 Feb 2005 23:31:57 +1030
- Subject: Re: binutils warning fixes
- References: <20050217125832.GZ10128@bubble.modra.org>
On Thu, Feb 17, 2005 at 11:28:32PM +1030, Alan Modra wrote:
> binutils/
> * deflex.l (YY_NO_UNPUT): Define.
> * rclex.l (YY_NO_UNPUT): Define.
> * rcparse.y (null_unichar): New static var.
> (res_null_text): Use it rather than attempting to init from wchar_t.
> * windres.c <assert.h, time.h>: Include before getopt.h.
> Include config.h and unistd.h too.
Oops, missed most of the diff. Here's the rest.
Index: binutils/deflex.l
===================================================================
RCS file: /cvs/src/src/binutils/deflex.l,v
retrieving revision 1.7
diff -u -p -r1.7 deflex.l
--- binutils/deflex.l 8 Mar 2004 11:50:36 -0000 1.7
+++ binutils/deflex.l 17 Feb 2005 11:14:22 -0000
@@ -27,6 +27,8 @@
#include "defparse.h"
#include "dlltool.h"
+#define YY_NO_UNPUT
+
int linenumber;
%}
Index: binutils/rclex.l
===================================================================
RCS file: /cvs/src/src/binutils/rclex.l,v
retrieving revision 1.10
diff -u -p -r1.10 rclex.l
--- binutils/rclex.l 14 Sep 2003 12:20:16 -0000 1.10
+++ binutils/rclex.l 17 Feb 2005 11:14:26 -0000
@@ -32,6 +32,8 @@
#include <assert.h>
+#define YY_NO_UNPUT
+
/* Whether we are in rcdata mode, in which we returns the lengths of
strings. */
Index: binutils/rcparse.y
===================================================================
RCS file: /cvs/src/src/binutils/rcparse.y,v
retrieving revision 1.20
diff -u -p -r1.20 rcparse.y
--- binutils/rcparse.y 17 Jan 2005 16:24:12 -0000 1.20
+++ binutils/rcparse.y 17 Feb 2005 11:14:26 -0000
@@ -54,10 +54,11 @@ static unsigned long base_style;
static unsigned long default_style;
static unsigned long class;
static struct res_id res_text_field;
+static unichar null_unichar;
/* This is used for COMBOBOX, LISTBOX and EDITTEXT which
do not allow resource 'text' field in control definition. */
-static const struct res_id res_null_text = { 1, {{0, L""}}};
+static const struct res_id res_null_text = { 1, {{0, &null_unichar}}};
%}
--
Alan Modra
IBM OzLabs - Linux Technology Centre