[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: 29-gary-fix-signedness-mismatch-warnings
From: |
Gary V. Vaughan |
Subject: |
FYI: 29-gary-fix-signedness-mismatch-warnings |
Date: |
Mon, 2 Apr 2007 13:28:26 +0100 (BST) |
User-agent: |
mailnotify/0.7 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Applied to HEAD.
Index: ChangeLog
from Gary V. Vaughan <address@hidden>
Get rid of the last 'differs in signedness' compiler warnings:
* m4/macro.c (process_macro): m4_get_symbol_value_text() returns
a regular 'char *', so variables to store the return address,
and iterate through it should be regular 'char *' too.
* m4/input.c (m4_input_block): The start and current members of
the string part of this union store regular 'char *' types, so
they should be regular 'char *' types too.
Index: m4/input.c
===================================================================
RCS file: /sources/m4/m4/m4/input.c,v
retrieving revision 1.63
diff -u -u -r1.63 input.c
--- m4/input.c 2 Apr 2007 12:06:23 -0000 1.63
+++ m4/input.c 2 Apr 2007 12:27:41 -0000
@@ -146,8 +146,8 @@
{
struct
{
- unsigned char *start; /* string value */
- unsigned char *current; /* current value */
+ char *start; /* string value */
+ char *current; /* current value */
}
u_s;
struct
Index: m4/macro.c
===================================================================
RCS file: /sources/m4/m4/m4/macro.c,v
retrieving revision 1.64
diff -u -u -r1.64 macro.c
--- m4/macro.c 11 Nov 2006 16:21:25 -0000 1.64
+++ m4/macro.c 2 Apr 2007 12:27:41 -0000
@@ -415,7 +415,7 @@
process_macro (m4 *context, m4_symbol_value *value, m4_obstack *obs,
int argc, m4_symbol_value **argv)
{
- const unsigned char *text;
+ const char *text;
int i;
for (text = m4_get_symbol_value_text (value); *text != '\0';)
@@ -471,7 +471,7 @@
else
{
size_t len = 0;
- const unsigned char *endp;
+ const char *endp;
const char *key;
for (endp = ++text;
- --
())_. Email me: address@hidden
( '/ Read my blog: http://blog.azazil.net
/ )= ...and my book: http://sources.redhat.com/autobook
`(_~)_ Join my AGLOCO Network: http://www.agloco.com/r/BBBS7912
_________________________________________________________
This patch notification generated by vcsapply version 1.0
http://savannah.gnu.org/projects/cvs-utils
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFGEPbpFRMICSmD1gYRAuc1AKCZdb736Kb6GgBNnPPQfD4lWOyWxwCfaRev
vPBg2sNNSb7//zAWgeBchcQ=
=14iv
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: 29-gary-fix-signedness-mismatch-warnings,
Gary V. Vaughan <=