m4-patches
[Top][All Lists]
Advanced

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

Re: head - cleanup warnings


From: Eric Blake
Subject: Re: head - cleanup warnings
Date: Sat, 22 Jul 2006 15:41:48 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

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

This warning only occurs with -O2.

../modules/gnu.c: In function `builtin_format':
../modules/format.c:77: warning: 'str' might be used uninitialized in this
function

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

        * modules/format.c (format): Avoid compiler warning that str may
        be used uninitialized.

Index: modules/format.c
===================================================================
RCS file: /sources/m4/m4/modules/format.c,v
retrieving revision 1.18
diff -u -p -r1.18 format.c
- --- modules/format.c    17 Jul 2006 13:26:09 -0000      1.18
+++ modules/format.c    22 Jul 2006 21:41:10 -0000
@@ -283,6 +283,9 @@ format (m4_obstack *obs, int argc, m4_sy
          else
            str = xasprintf (fstart, ARG_STR(argc, argv));
          break;
+
+       default:
+         abort ();
        }

       *fmt = c;

- --
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

iD8DBQFEwpuc84KuGfSFAYARAjVxAKDG0UtIXlzCPc0cWDoL3O4I8ghgdgCeM4mX
hp/8olDpzzze7FxGyZJoq24=
=ewrF
-----END PGP SIGNATURE-----




reply via email to

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