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.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to