]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid compiler warnings with some assert() implementations
authorBen Walton <bdwalton@gmail.com>
Mon, 2 Jun 2014 19:32:16 +0000 (20:32 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 2 Jun 2014 19:44:07 +0000 (20:44 +0100)
* 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
src/df.c

index a92540adc3c9fc25ae70f1c4042c2683eab4b55b..6fd79d3231ed6c52b39cd08c1f039a099bbc2650 100644 (file)
--- 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
index 82b0c5f378612f8a0c07c2f9d24781b28769f2cc..747d138b856d171bb8da0ba5abf30850b72314f7 100644 (file)
--- 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");
         }