From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] enum rtdm_selecttype
Date: Sun, 01 Jun 2008 22:15:29 +0200 [thread overview]
Message-ID: <48430361.7070004@domain.hid> (raw)
In-Reply-To: <18499.473.653868.93704@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]
Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
> > Gilles Chanteperdrix wrote:
> > > Philippe Gerum wrote:
> > > > Gilles Chanteperdrix wrote:
> > > > > Hi Jan,
> > > > >
> > > > > when compiling xenomai v2.4.x for ARM with gcc 4.2.1, I get plenty of
> > > > > warnings like:
> > > > > xenomai-arm/kernel/xenomai/skins/posix/syscall.c:38:
> > > > > xenomai-arm/include/xenomai/rtdm/rtdm_driver.h:206: warning: parameter has incomplete type
> > > > >
> > > > > So it seems gcc 4.2.1 does not like the enum being used in function
> > > > > prototypes without being defines. So, could we move the enum definition
> > > > > before the functions using it ?
> > > > >
> > > >
> > > > We can sort this out with a simple forward declaration.
> > >
> > > That is the way it is done today, but gcc 4.2.1 seems not to like
> > > it. Maybe recent C standards allow the compiler to pick the smallest type
> > > for the enum as C++ does ?
> > >
> >
> > Or any integral type the implementation sees fit actually. Well, yes, maybe it
> > is indeed bits of the C++ standard dripping on the C implementation of GCC,
> > especially if forward decl of enums is not explicitly defined by the C standard.
>
> Actually it is gcc 3.4 which does not like the forward decl, not gcc 4.2
I'm fine with moving it if that helps to make all compilers happy. Just
ensure that it remains in the right doxygen group.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
prev parent reply other threads:[~2008-06-01 20:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-01 18:45 [Xenomai-core] enum rtdm_selecttype Gilles Chanteperdrix
2008-06-01 18:57 ` Philippe Gerum
2008-06-01 19:02 ` Gilles Chanteperdrix
2008-06-01 19:19 ` Philippe Gerum
2008-06-01 20:08 ` Gilles Chanteperdrix
2008-06-01 20:15 ` Jan Kiszka [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=48430361.7070004@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.