From 6ecf4e06a48cfc6dfbdf7c8f2969ffe7271f15da Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 23 Oct 2015 16:58:13 -0400 Subject: [PATCH] Add cast to observer.sh gdb/ChangeLog: * observer.h (observer_${event}_notification_stub): Add cast. --- gdb/ChangeLog | 4 ++++ gdb/observer.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 295ad96c1b..4f506e5676 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-10-23 Simon Marchi + + * observer.h (observer_${event}_notification_stub): Add cast. + 2015-10-23 Yao Qi * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set diff --git a/gdb/observer.sh b/gdb/observer.sh index dde8056605..6fd0ada595 100755 --- a/gdb/observer.sh +++ b/gdb/observer.sh @@ -143,7 +143,7 @@ EOF if test ! -z "${notify_args}"; then cat<>${otmp} - const struct ${event}_args *args = args_data; + const struct ${event}_args *args = (const struct ${event}_args *) args_data; EOF fi cat <>${otmp}