binutils warning fixes
Alan Modra
amodra@bigpond.net.au
Thu Feb 17 17:59:00 GMT 2005
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
More information about the Binutils
mailing list