From: Bjørn Wennberg <Bjorn.Wennberg@lcc.no>
To: "'egcs@cygnus.com'" <egcs@cygnus.com>
Subject: extern "C" and prototyping question
Date: Thu, 30 Apr 1998 05:23:00 -0000 [thread overview]
Message-ID: <3CACE2C4948AD1119CF9080009EB2C8801AAB6@netp1.etp.no> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 732 bytes --]
Hi there!
I have a problem getting the following code snip to compile:
extern "C" {
void set_CB(void (*func)());
}
void exit_handler() {}
int main()
{
set_CB(exit_handler);
}
+++++
When compiling this with egcs-1.0.3-prerelease I get
warning: ANSI C++ prohibits conversion from `()' to `(...)'
If I do compile with -pedantic, the warning goes away. What is wrong
here?
bjornw>
------------------------------------------------------------------------
------------------------------------
Bjørn Wennberg email:
bw@lcc.no
Development Engineer, CellAD System 7 phone: +47 6797 8800
LCC Europe fax:
+47 6797 8801
next reply other threads:[~1998-04-30 5:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-30 5:23 Bjørn Wennberg [this message]
1998-05-01 3:55 Brad M. Garcia
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=3CACE2C4948AD1119CF9080009EB2C8801AAB6@netp1.etp.no \
--to=bjorn.wennberg@lcc.no \
--cc=egcs@cygnus.com \
/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).