This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Uli, here're some patches to remove a few warnings I noticed. Ok to commit? Andreas 2000-11-20 Andreas Jaeger <aj@suse.de> * nscd/nscd.h (termination_handler): Add noreturn attribute. (receiv_print_stats): Likewise. * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison. ============================================================ Index: nscd/nscd.h --- nscd/nscd.h 2000/04/30 04:29:52 1.5 +++ nscd/nscd.h 2000/11/20 12:25:31 @@ -102,7 +102,7 @@ /* Prototypes for global functions. */ /* nscd.c */ -extern void termination_handler (int signum); +extern void termination_handler (int signum) __attribute__ ((__noreturn__)); extern int nscd_open_socket (void); /* connections.c */ @@ -115,7 +115,7 @@ /* nscd_stat.c */ extern void send_stats (int fd, struct database dbs[lastdb]); -extern int receive_print_stats (void); +extern int receive_print_stats (void) __attribute__ ((__noreturn__)); /* cache.c */ extern struct hashentry *cache_search (int type, void *key, size_t len, ============================================================ Index: elf/ldconfig.c --- elf/ldconfig.c 2000/11/15 08:43:39 1.13 +++ elf/ldconfig.c 2000/11/20 12:25:32 @@ -191,9 +191,9 @@ h = _dl_string_hwcap (ptr + 1); - if (h == -1) + if (h == (uint64_t)-1) h = _dl_string_platform (ptr + 1); - if (h == -1) + if (h == (uint64_t)-1) break; hwcap += 1ULL << h; -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |