From 1239ac573df0a699d6999aed23caaf4a0eb099df Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Mon, 2 Jun 2014 20:32:16 +0100 Subject: [PATCH] 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. --- THANKS.in | 1 - src/df.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.47.2