m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

head - warnings patrol


From: Eric Blake
Subject: head - warnings patrol
Date: Fri, 14 Jul 2006 09:27:01 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -Ignu
- -I../gnu -Im4 -I../m4 -I../ltdl -g2 -Wall -Werror -MT modules/gnu.lo -MD
- -MP -MF modules/.deps/gnu.Tpo -c ../modules/gnu.c  -DDLL_EXPORT -DPIC -o
modules/.libs/gnu.o
../modules/gnu.c: In function `builtin_renamesyms':
../modules/gnu.c:666: warning: unused variable `length'
...
if gcc -DHAVE_CONFIG_H -I. -I.. -I.  -I. -I.. -Ignu -I../gnu -Im4 -I../m4
 -I../ltdl -Isrc -I../src -I../ltdl   -g2 -Wall -Werror -MT
src/src_m4-main.o -MD -MP -MF "src/.deps/src_m4-main.Tpo" -c -o
src/src_m4-main.o `test -f 'src/main.c' || echo '../'`src/main.c; \
        then mv -f "src/.deps/src_m4-main.Tpo" "src/.deps/src_m4-main.Po";
else rm -f "src/.deps/src_m4-main.Tpo"; exit 1; fi
../src/main.c: In function `main':
../src/main.c:444: warning: initialization discards qualifiers from
pointer target type

2006-07-14  Eric Blake  <address@hidden>

        * src/main.c (main): Avoid compiler warning.
        * modules/gnu.c (renamesyms): Remove unused variable.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEt7fF84KuGfSFAYARAi4RAJ4z4ML9+BXoazt8PFqTwCnTJeoLvwCg1R3V
07eUHiWVyULylNeTYg//ZL4=
=JICi
-----END PGP SIGNATURE-----
Index: modules/gnu.c
===================================================================
RCS file: /sources/m4/m4/modules/gnu.c,v
retrieving revision 1.44
diff -u -p -r1.44 gnu.c
--- modules/gnu.c       13 Jul 2006 23:35:16 -0000      1.44
+++ modules/gnu.c       14 Jul 2006 15:26:37 -0000
@@ -663,7 +663,6 @@ M4BUILTIN_HANDLER (renamesyms)
       for (; data.size > 0; --data.size, data.base++)
        {
          const char *  name    = data.base[0];
-         int           length  = strlen (name);
 
          if (m4_regexp_substitute (context, &rename_obs, me, name, regexp,
                                    buf, replace, true))
Index: src/main.c
===================================================================
RCS file: /sources/m4/m4/src/main.c,v
retrieving revision 1.67
diff -u -p -r1.67 main.c
--- src/main.c  13 Jul 2006 23:35:16 -0000      1.67
+++ src/main.c  14 Jul 2006 15:26:37 -0000
@@ -441,7 +441,7 @@ main (int argc, char *const *argv, char 
       {
        macro_definition *next;
        char *macro_value;
-       char *optarg = defines->macro;
+       const char *optarg = defines->macro;
 
        switch (defines->code)
          {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]