From c6486df5f1400d90a13df5c6dbd96aeaccf8225b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 27 Oct 2015 09:34:30 -0400 Subject: Add scm_t_dynwind_flags casts There is a handful of calls to scm_dynwind_begin (0); where the parameter is an enum, scm_t_dynwind_flags. In C++, we have no choice but to add an explicit cast, since there is no enum value that represents 0 (no flags set). gdb/ChangeLog: * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add scm_t_dynwind_flags casts. * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. * guile/scm-ports.c (gdbscm_open_memory): Likewise. * guile/scm-value.c (gdbscm_value_to_string): Likewise. --- gdb/guile/scm-value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/guile/scm-value.c') diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c index f25f7d5..851d8a7 100644 --- a/gdb/guile/scm-value.c +++ b/gdb/guile/scm-value.c @@ -1158,7 +1158,7 @@ gdbscm_value_to_string (SCM self, SCM rest) Make sure we don't leak. This is done via scm_dynwind_begin, et.al. */ discard_cleanups (cleanups); - scm_dynwind_begin (0); + scm_dynwind_begin ((scm_t_dynwind_flags) 0); gdbscm_dynwind_xfree (encoding); gdbscm_dynwind_xfree (buffer); -- cgit v1.1