* tb-gcc.c (__gnat_backtrace): Mark all arguments unused.

From-SVN: r151355
This commit is contained in:
Richard Henderson 2009-09-02 17:07:41 -07:00 committed by Richard Henderson
parent 02c8b4f8d9
commit c1942361b4
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2009-09-02 Richard Henderson <rth@redhat.com>
* tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
2009-09-02 Olivier Hainque <hainque@adacore.com>
* init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si

View File

@ -94,9 +94,11 @@ trace_callback (struct _Unwind_Context * uw_context, uw_data_t * uw_data)
********************/
int
__gnat_backtrace (void ** traceback, int max_len,
void * exclude_min, void * exclude_max,
int skip_frames)
__gnat_backtrace (void ** traceback __attribute__((unused)),
int max_len __attribute__((unused)),
void * exclude_min __attribute__((unused)),
void * exclude_max __attribute__((unused)),
int skip_frames __attribute__((unused)))
{
#if defined (__USING_SJLJ_EXCEPTIONS__)
/* We have no unwind material (tables) at hand with sjlj eh, and no