This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi! On Thu, 14 Feb 2013 11:34:03 +0530, Siddhesh Poyarekar <siddhesh@redhat.com> wrote: > The patch below marks these functions as possibly unused since any > file that includes regex_internal.h may not necessarily use all of the > functions defined. > --- a/locale/elem-hash.h > +++ b/locale/elem-hash.h > @@ -18,7 +18,7 @@ > > > /* The hashing function used for the table with collation symbols. */ > -static int32_t > +static int32_t __attribute ((pure, unused)) > elem_hash (const char *str, int_fast32_t n) > { > int32_t result = n; Wouldn't marking them as always_inline (which is the intention here, I think?) also make that warning go away? GrÃÃe, Thomas
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |