diff options
author | Jim Meyering <meyering@redhat.com> | 2009-04-30 09:02:25 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-04-30 09:02:25 +0200 |
commit | ee73b13b1459785a9a74044efcce9ce88ec33c3b (patch) | |
tree | afcf1afc6fcc721f180a78e9890a3b2b220af747 /src | |
parent | e05f6890eda248aedea0681a120bf1a05d8bf6ec (diff) | |
download | idutils-ee73b13b1459785a9a74044efcce9ce88ec33c3b.tar.gz idutils-ee73b13b1459785a9a74044efcce9ce88ec33c3b.tar.bz2 idutils-ee73b13b1459785a9a74044efcce9ce88ec33c3b.zip |
build: suppress more warnings
* src/fid.c (usage): Declare with __noreturn__ attribute.
* src/fnid.c (usage): Likewise.
* src/lid.c (usage): Likewise.
* src/mkid.c (usage): Likewise.
* src/xtokid.c: (usage): Likewise.
* src/mkid.c (sum_files): Remove unused macro.
Diffstat (limited to 'src')
-rw-r--r-- | src/fid.c | 4 | ||||
-rw-r--r-- | src/fnid.c | 5 | ||||
-rw-r--r-- | src/lid.c | 2 | ||||
-rw-r--r-- | src/mkid.c | 4 | ||||
-rw-r--r-- | src/xtokid.c | 4 |
5 files changed, 9 insertions, 10 deletions
@@ -1,5 +1,5 @@ /* fid.c -- list all tokens in the given file(s) - Copyright (C) 1986, 1995, 1996, 2008 Free Software Foundation, Inc. + Copyright (C) 1986, 1995, 1996, 2008, 2009 Free Software Foundation, Inc. Written by Greg McGary <gkm@gnu.ai.mit.edu> This program is free software; you can redistribute it and/or modify @@ -38,7 +38,7 @@ static int get_file_index (char *file_name); static int is_hit (unsigned char const *hits, int file_number); static int is_hit_1 (unsigned char const **hits, int level, int file_number); static void skip_hits (unsigned char const **hits, int level); -void usage (void); +void usage (void) __attribute__((__noreturn__)); struct idhead idh; static int tree8_levels; @@ -1,5 +1,5 @@ /* fnid.c -- report which files constitute an ID database - Copyright (C) 1996, 2008 Free Software Foundation, Inc. + Copyright (C) 1996, 2008, 2009 Free Software Foundation, Inc. Written by Greg McGary <gkm@gnu.ai.mit.edu> This program is free software; you can redistribute it and/or modify @@ -34,8 +34,6 @@ #include "iduglobal.h" #include "progname.h" -void usage (void); - static int show_version = 0; static int show_help = 0; static struct file_link *cw_dlink; @@ -46,6 +44,7 @@ struct idhead idh; static enum separator_style separator_style = ss_contextual; +void usage (void) __attribute__((__noreturn__)); void usage (void) { @@ -93,7 +93,7 @@ enum radix radix_all = radix_dec | radix_oct | radix_hex }; -void usage (void); +void usage (void) __attribute__((__noreturn__)); static void help_me (void); static void lower_caseify (char *str); static enum key_style parse_key_style (char const *arg); @@ -1,5 +1,5 @@ /* mkid.c -- build an identifer database - Copyright (C) 1986, 1995, 1996, 1999, 2007-2008 Free Software Foundation, Inc. + Copyright (C) 1986, 1995, 1996, 1999, 2007-2009 Free Software Foundation, Inc. Written by Greg McGary <gkm@gnu.ai.mit.edu> This program is free software; you can redistribute it and/or modify @@ -51,7 +51,6 @@ struct summary struct summary *u_kids[8]; /* when sum_level > 0 */ #define sum_kids sum_u.u_kids struct member_file *u_files[8]; /* when sum_level == 0 */ -#define sum_files sum_u.u_files } sum_u; unsigned long sum_tokens_size; unsigned long sum_hits_count; @@ -120,6 +119,7 @@ static int show_help = 0; struct idhead idh; static struct file_link *cw_dlink; +void usage (void) __attribute__((__noreturn__)); void usage (void) { diff --git a/src/xtokid.c b/src/xtokid.c index c45d5be..8f77980 100644 --- a/src/xtokid.c +++ b/src/xtokid.c @@ -1,5 +1,5 @@ /* idx.c -- simple interface for testing scanners scanners - Copyright (C) 1986, 1995, 1996, 1999, 2007-2008 Free Software Foundation, Inc. + Copyright (C) 1986, 1995, 1996, 1999, 2007-2009 Free Software Foundation, Inc. Written by Greg McGary <gkm@gnu.ai.mit.edu> This program is free software; you can redistribute it and/or modify @@ -35,7 +35,7 @@ static void scan_files (struct idhead *idhp); static void scan_member_file (struct member_file const *member); -void usage (void); +void usage (void) __attribute__((__noreturn__)); static char *lang_map_file_name = 0; static int show_version = 0; |