summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Walton <bdwalton@gmail.com>2014-06-02 20:32:16 +0100
committerPádraig Brady <P@draigBrady.com>2014-06-02 20:44:07 +0100
commit1239ac573df0a699d6999aed23caaf4a0eb099df (patch)
treeec31411dec131c8b0b86dae2c83819d169df72ed /src
parenta6ee674d643d187216d426fcdb7789769aaa4ea2 (diff)
downloadcoreutils-1239ac573df0a699d6999aed23caaf4a0eb099df.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/df.c1
1 files changed, 1 insertions, 0 deletions
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");
}