diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-02-26 10:40:19 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-02-26 10:40:19 +0530 |
commit | 53a5c423fb77a0befa400b4672ac98cf910db986 (patch) | |
tree | 56359dd97463c9d9eed9906716191dfa93d29164 /posix/regex_internal.h | |
parent | 2a983a2e0a2da070219a9cc5f4157d9dceee3c88 (diff) | |
download | glibc-53a5c423fb77a0befa400b4672ac98cf910db986.tar.gz glibc-53a5c423fb77a0befa400b4672ac98cf910db986.tar.xz glibc-53a5c423fb77a0befa400b4672ac98cf910db986.zip |
Fix some build warnings
Diffstat (limited to 'posix/regex_internal.h')
-rw-r--r-- | posix/regex_internal.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h index b2806635a5..0521f74048 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -121,12 +121,6 @@ # define attribute_hidden #endif /* not _LIBC */ -#ifdef __GNUC__ -# define __attribute(arg) __attribute__ (arg) -#else -# define __attribute(arg) -#endif - extern const char __re_error_msgid[] attribute_hidden; extern const size_t __re_error_msgid_idx[] attribute_hidden; @@ -378,7 +372,7 @@ typedef struct re_dfa_t re_dfa_t; #ifndef _LIBC # ifdef __i386__ -# define internal_function __attribute ((regparm (3), stdcall)) +# define internal_function __attribute__ ((regparm (3), stdcall)) # else # define internal_function # endif @@ -397,7 +391,7 @@ static void build_upper_buffer (re_string_t *pstr) internal_function; static void re_string_translate_buffer (re_string_t *pstr) internal_function; static unsigned int re_string_context_at (const re_string_t *input, int idx, int eflags) - internal_function __attribute ((pure)); + internal_function __attribute__ ((pure)); #endif #define re_string_peek_byte(pstr, offset) \ ((pstr)->mbs[(pstr)->cur_idx + offset]) @@ -686,7 +680,7 @@ typedef struct /* Inline functions for bitset operation. */ -static void +static void __attribute__ ((unused)) bitset_not (bitset_t set) { int bitset_i; @@ -694,7 +688,7 @@ bitset_not (bitset_t set) set[bitset_i] = ~set[bitset_i]; } -static void +static void __attribute__ ((unused)) bitset_merge (bitset_t dest, const bitset_t src) { int bitset_i; @@ -702,7 +696,7 @@ bitset_merge (bitset_t dest, const bitset_t src) dest[bitset_i] |= src[bitset_i]; } -static void +static void __attribute__ ((unused)) bitset_mask (bitset_t dest, const bitset_t src) { int bitset_i; @@ -713,7 +707,7 @@ bitset_mask (bitset_t dest, const bitset_t src) #ifdef RE_ENABLE_I18N /* Inline functions for re_string. */ static int -internal_function __attribute ((pure)) +internal_function __attribute__ ((pure, unused)) re_string_char_size_at (const re_string_t *pstr, int idx) { int byte_idx; @@ -726,7 +720,7 @@ re_string_char_size_at (const re_string_t *pstr, int idx) } static wint_t -internal_function __attribute ((pure)) +internal_function __attribute__ ((pure, unused)) re_string_wchar_at (const re_string_t *pstr, int idx) { if (pstr->mb_cur_max == 1) @@ -736,7 +730,7 @@ re_string_wchar_at (const re_string_t *pstr, int idx) # ifndef NOT_IN_libc static int -internal_function __attribute ((pure)) +internal_function __attribute__ ((pure, unused)) re_string_elem_size_at (const re_string_t *pstr, int idx) { # ifdef _LIBC |