From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4842F10D.7060601@domain.hid> Date: Sun, 01 Jun 2008 20:57:17 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <18498.60991.572819.581076@domain.hid> In-Reply-To: <18498.60991.572819.581076@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Subject: Re: [Xenomai-core] enum rtdm_selecttype Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: Jan Kiszka , xenomai@xenomai.org 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. -- Philippe.