This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH c++ 04/12] Add scm_t_dynwind_flags casts
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, gdb-patches at sourceware dot org
- Date: Tue, 27 Oct 2015 12:15:16 +0000
- Subject: Re: [PATCH c++ 04/12] Add scm_t_dynwind_flags casts
- Authentication-results: sourceware.org; auth=none
- References: <1445831204-16588-1-git-send-email-simon dot marchi at polymtl dot ca> <1445831204-16588-4-git-send-email-simon dot marchi at polymtl dot ca>
On 10/26/2015 03:46 AM, Simon Marchi wrote:
> 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).
I agree; I don't think there's anything else that we could do here.
So, OK.
Thanks,
Pedro Alves