btrace: fix test build error in gdb.btrace/instruction_history.c
On systems with a newer version of GCC the gdb.btrace/instruction_history.exp test fails to build like this: Running .../gdb.btrace/instruction_history.exp ... gdb compile failed, .../gdb.btrace/instruction_history.c: In function 'main': .../gdb.btrace/instruction_history.c:24:3: warning: implicit declaration of function 'loop' [-Wimplicit-function-declaration] loop (); ^ Declare loop to fix it. testsuite/ * gdb.btrace/instruction_history.c (loop): Add declaration.
This commit is contained in:
parent
37ce0cc4b7
commit
e26b7e4165
@ -1,3 +1,7 @@
|
|||||||
|
2016-04-13 Markus Metzger <markus.t.metzger@intel.com>
|
||||||
|
|
||||||
|
* gdb.btrace/instruction_history.c (loop): Add declaration.
|
||||||
|
|
||||||
2016-04-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
|
2016-04-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
|
||||||
|
|
||||||
* gdb.trace/ftrace.exp (proc): Change test prefix from "ond" to "cond".
|
* gdb.trace/ftrace.exp (proc): Change test prefix from "ond" to "cond".
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
extern void loop (void);
|
||||||
|
|
||||||
int
|
int
|
||||||
main (void)
|
main (void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user