From: Ben Walton Date: Mon, 2 Jun 2014 19:32:16 +0000 (+0100) Subject: maint: avoid compiler warnings with some assert() implementations X-Git-Tag: v8.23~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1239ac573df0a699d6999aed23caaf4a0eb099df;p=thirdparty%2Fcoreutils.git maint: avoid compiler warnings with some assert() implementations * src/df.c (get_dev): asssert() on Solaris 10 is not marked as __noreturn__ and thus the compiler may think V is uninitialized later on in the function. * THANKS.in: Remove the now committer. --- diff --git a/THANKS.in b/THANKS.in index a92540adc3..6fd79d3231 100644 --- a/THANKS.in +++ b/THANKS.in @@ -77,7 +77,6 @@ Barry Kelly http://barrkel.blogspot.com/ Bauke Jan Douma bjdouma@xs4all.nl Ben Elliston bje@air.net.au Ben Harris bjh21@netbsd.org -Ben Walton bwalton@artsci.utoronto.ca Bengt Martensson bengt@mathematik.uni-Bremen.de Benjamin Cutler cutlerbc@simla.colostate.edu Bernard Giroud bernard.giroud@creditlyonnais.ch diff --git a/src/df.c b/src/df.c index 82b0c5f378..747d138b85 100644 --- a/src/df.c +++ b/src/df.c @@ -953,6 +953,7 @@ get_dev (char const *disk, char const *mount_point, char const* file, v = NULL; break; default: + v = NULL; /* Avoid warnings where assert() is not __noreturn__. */ assert (!"bad field_type"); }