Mercurial > gnulib
changeset 12203:e298b64a31cf
exclude: avoid an unwarranted warning
* lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Wed, 28 Oct 2009 09:26:04 +0100 |
parents | a0f033ee41af |
children | 5929f9acfa94 |
files | ChangeLog lib/exclude.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Oct 27 10:42:50 2009 -0600 +++ b/ChangeLog Wed Oct 28 09:26:04 2009 +0100 @@ -1,3 +1,8 @@ +2009-10-28 Jim Meyering <meyering@redhat.com> + + exclude: avoid an unwarranted warning + * lib/exclude.c (excluded_file_name): Initialize "rc" before switch. + 2009-10-27 Eric Blake <ebb9@byu.net> fseek: avoid compilation failure when fflush is replaced
--- a/lib/exclude.c Tue Oct 27 10:42:50 2009 -0600 +++ b/lib/exclude.c Wed Oct 28 09:26:04 2009 +0100 @@ -412,7 +412,9 @@ excluded to included or vice versa. */ for (seg = ex->head; seg; seg = seg->next) { - bool rc; + /* Pacify gcc, so it doesn't issue a spurious + "may be used uninitialized" warning. */ + bool rc = excluded; switch (seg->type) {