From 1239ac573df0a699d6999aed23caaf4a0eb099df Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Mon, 2 Jun 2014 20:32:16 +0100 Subject: 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. --- src/df.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/df.c') diff --git a/src/df.c b/src/df.c index 82b0c5f37..747d138b8 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"); } -- cgit v1.2.3-70-g09d2