diff options
author | Roland McGrath <roland@gnu.org> | 2001-02-26 04:15:19 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-02-26 04:15:19 +0000 |
commit | 7abd39f56d47c3600ff7fec22ff7d07b718bd1b7 (patch) | |
tree | 7034357d22b56ecd374d60856107a6e492a4c9ac /libshouldbeinlibc | |
parent | afd1941d02b85e5b03443acf1c9632ba25ad439b (diff) |
2001-02-25 Roland McGrath <roland@frob.com>
* wire.c (map_extent): Add dead return stmt to silence gcc warning.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/wire.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libshouldbeinlibc/wire.c b/libshouldbeinlibc/wire.c index d2d74c20..cc6a5ece 100644 --- a/libshouldbeinlibc/wire.c +++ b/libshouldbeinlibc/wire.c @@ -1,5 +1,5 @@ /* Function to wire down text and data (including from shared libraries) - Copyright (C) 1996,99,2000 Free Software Foundation, Inc. + Copyright (C) 1996,99,2000,01 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -60,7 +60,11 @@ map_extent (struct link_map *map) /* In fact, LIB == MAP, but doing it this way makes it entirely kosher. */ void *lib = dlopen (map->l_name, RTLD_NOLOAD); if (lib == 0) - error (2, 0, "cannot dlopen %s: %s", map->l_name, dlerror ()); + { + error (2, 0, "cannot dlopen %s: %s", map->l_name, dlerror ()); + /* NOTREACHED */ + return 0; + } else { /* Find the _end symbol's runtime address and subtract the load base. */ |