From: Pedro Alves <palves@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [PATCH 0/3] Fix C++ build errors related to signal handler types
Date: Thu, 27 Aug 2015 12:28:00 -0000 [thread overview]
Message-ID: <55DF025B.9010208@redhat.com> (raw)
In-Reply-To: <1440450590-27215-1-git-send-email-palves@redhat.com>
On 08/24/2015 10:09 PM, Pedro Alves wrote:
> This fixes 14 build errors like these in C++ mode:
>
> src/gdb/extension.c: In function âvoid install_sigint_handler(const signal_handler*)â:
> src/gdb/extension.c:698:41: error: invalid conversion from âvoid (*)()â to â__sighandler_t {aka void (*)(int)}â [-fpermissive]
> signal (SIGINT, handler_state->handler);
> ^
> In file included from build-gnulib/import/signal.h:52:0,
> from ../../src/gdb/extension.c:24:
> /usr/include/signal.h:102:23: error: initializing argument 2 of âvoid (* signal(int, __sighandler_t))(int)â [-fpermissive]
> extern __sighandler_t signal (int __sig, __sighandler_t __handler)
> ^
>
> Pedro Alves (3):
> Import the "signal-h" module from gnulib
> gdb: Use sighandler_t everywhere
> gdb: Drop use of obsolete AC_TYPE_SIGNAL
I pushed this in.
Thanks,
Pedro Alves
prev parent reply other threads:[~2015-08-27 12:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 21:09 Pedro Alves
2015-08-24 21:10 ` [PATCH 2/3] gdb: Use sighandler_t everywhere Pedro Alves
2015-08-24 21:10 ` [PATCH 3/3] gdb: Drop use of obsolete AC_TYPE_SIGNAL Pedro Alves
2015-08-24 21:10 ` [PATCH 1/3] Import the "signal-h" module from gnulib Pedro Alves
2015-08-27 12:28 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DF025B.9010208@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).