From 0a35e3ac65dfd2db4e0ae0f68fdb21493c5fbfa1 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 13 Mar 2015 23:51:40 +0100 Subject: Fix -Wimplicit warnings. --- tests/backtrace-dwarf.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/backtrace-dwarf.c') diff --git a/tests/backtrace-dwarf.c b/tests/backtrace-dwarf.c index 87d088aa..fbcb22e6 100644 --- a/tests/backtrace-dwarf.c +++ b/tests/backtrace-dwarf.c @@ -1,5 +1,5 @@ /* Test program for unwinding of complicated DWARF expressions. - Copyright (C) 2013 Red Hat, Inc. + Copyright (C) 2013, 2015 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -22,7 +22,11 @@ #include #include #include +#include +#include #include +#include +#include #include ELFUTILS_HEADER(dwfl) #ifndef __linux__ @@ -37,7 +41,6 @@ main (int argc __attribute__ ((unused)), char **argv) #else /* __linux__ */ -static void cleanup_13_abort (void); #define main cleanup_13_main #include "cleanup-13.c" #undef main @@ -115,7 +118,9 @@ static int thread_callback (Dwfl_Thread *thread, void *thread_arg) { dwfl_thread_getframes (thread, frame_callback, NULL); + /* frame_callback shall exit (0) on success. */ error (1, 0, "dwfl_thread_getframes: %s", dwfl_errmsg (-1)); + return DWARF_CB_ABORT; } int -- cgit v1.2.1