many unused function warnings in gdb 7.9 on darwin

Jack Howarth <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CADtEn-0a2XqyNySrYL-OrC=yYvBs_uuVFNnJE5KdHt_-7FHsaA@mail.gmail.com>
   Building the gdb 7.9 release on x86_64-apple-darwin14 produces many
warnings of the form...

remote.c:2567:1: warning: unused function
'VEC_thread_item_t_embedded_size' [-Wunused-function]
DEF_VEC_O(thread_item_t);
^
./common/vec.h:435:20: note: expanded from macro 'DEF_VEC_O'
VEC_T(T);                                                                 \
                                                                          ^
./common/vec.h:863:22: note: expanded from macro '\
DEF_VEC_FUNC_O'
static inline size_t VEC_OP (T,embedded_size)                             \
                     ^
./common/vec.h:399:22: note: expanded from macro 'VEC_OP'
#define VEC_OP(T,OP) VEC_##T##_##OP
                     ^
<scratch space>:55:1: note: expanded from here
VEC_thread_item_t_embedded_size
^

Shouldn't those VEC declarations use a wrapper to avoid them on
targets not supporting that code?
           Jack
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.