All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Victor Hiairrassary <victor.hiairrassary.ml@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] xenomai "does not" ISO C, C99 and C++ standard
Date: Sun, 28 Apr 2013 15:11:51 +0200	[thread overview]
Message-ID: <517D2017.9010307@xenomai.org> (raw)
In-Reply-To: <517D2E6B.3050601@gmail.com>

On 04/28/2013 04:12 PM, Victor Hiairrassary wrote:

> On 04/28/2013 01:22 AM, Gilles Chanteperdrix wrote:
>> Hi Victor,
>>
>> I have tried and fix this issue in Xenomai repository
>> (git://xenomai.org/xenomai-2.6.git), the errors disappeared completely
>> for the native and posix skins headers in C. The modifications made to
>> the posix headers for C do not seem to work for C++. It would be
>> interesting if you could download and try it.
>>
>> Without "-pedantic-errors", including posix headers in a C++ program
>> simply triggers warning.
>>
>> Regards.
>>
> 
> Hello,
> 
> I have tried with these settings (board apf27 : arm imx27):
> 
> xenomai_ver = f60f1a4f758a7d9b010f39f439eb98240b7beb42
> xenomai_site = git://git.xenomai.org/xenomai-2.6.git
> buildroot: 2013.02
> gcc: 4.7.2
> libc: eglibc 2_12
> busybox: 1.21.0
> U-Boot: custom (2012.04)
> Linux: 2.6.38.8
> 
> I have tested a simple program (available in attached file compiler
> command lines and logs) in c90, c99, c++03 and c++11 standard.
> 
> Only c++11 have no warning !


You do not see the posix warnings because you are not compiling with
posix skin flags (xeno-config --skin posix --cflags)
c99 does not work for you for the same reason (you are not using the
flags provided by xeno-config).
I am not going to fix things more than that, I do not see why anyone
would want to compile with old standards like c90 or c++03
Regards.

-- 
                                                                Gilles.


      reply	other threads:[~2013-04-28 13:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23  8:06 [Xenomai] xenomai "does not" ISO C, C99 and C++ standard Victor Hiairrassary
2013-04-23  8:21 ` Gilles Chanteperdrix
2013-04-23 19:09   ` Gilles Chanteperdrix
2013-04-27 23:22 ` Gilles Chanteperdrix
2013-04-28 14:12   ` Victor Hiairrassary
2013-04-28 13:11     ` Gilles Chanteperdrix [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=517D2017.9010307@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=victor.hiairrassary.ml@gmail.com \
    --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.