diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-27 09:34:30 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-27 09:34:30 -0400 |
commit | c6486df5f1400d90a13df5c6dbd96aeaccf8225b (patch) | |
tree | 917be04f71c2e8640734cf0d68389d3ed18e7532 /gdb/guile/scm-ports.c | |
parent | 70b8286a9749deb6639c2fd5b39c7e4a26195738 (diff) | |
download | gdb-c6486df5f1400d90a13df5c6dbd96aeaccf8225b.zip gdb-c6486df5f1400d90a13df5c6dbd96aeaccf8225b.tar.gz gdb-c6486df5f1400d90a13df5c6dbd96aeaccf8225b.tar.bz2 |
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.
Diffstat (limited to 'gdb/guile/scm-ports.c')
-rw-r--r-- | gdb/guile/scm-ports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/guile/scm-ports.c b/gdb/guile/scm-ports.c index ffaa3fd..26d43bf 100644 --- a/gdb/guile/scm-ports.c +++ b/gdb/guile/scm-ports.c @@ -1139,7 +1139,7 @@ gdbscm_open_memory (SCM rest) &start_arg_pos, &start, &size_arg_pos, &size); - scm_dynwind_begin (0); + scm_dynwind_begin ((scm_t_dynwind_flags) 0); if (mode == NULL) mode = xstrdup ("r"); |