All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] xenomai "does not" ISO C, C99 and C++ standard
@ 2013-04-23  8:06 Victor Hiairrassary
  2013-04-23  8:21 ` Gilles Chanteperdrix
  2013-04-27 23:22 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 6+ messages in thread
From: Victor Hiairrassary @ 2013-04-23  8:06 UTC (permalink / raw)
  To: xenomai

Hello all,

We use xenomai 2.6.2.1 with g++ 4.7.2 from buildroot on a Armadeus apf27
board. This works really fine, but if we add "-W -Werror -Wall -pedantic
-pedantic-errors" in compiler command line, g++ detects some warnings for
a code as simple as :

#include <native/task.h>
int main() {
     return 0;
}

The complete log of the compilation is attached with this email.

The compiler complains about various things, in differents files. I have 
not
tested other xenomai's headers like native/queue.h, etc. yet.

Do you have any plans to fix them?

Best regards,
Victor Hiairrassary
-------------- next part --------------
arm-g++ -o main.o -c main.cpp -W -Werror -Wall -pedantic -pedantic-errors -I sysroot/usr/include/xenomai/ -std=c++11
In file included from sysroot/usr/include/xenomai/nucleus/trace.h:52:0,
                 from sysroot/usr/include/xenomai/nucleus/system.h:27,
                 from sysroot/usr/include/xenomai/asm/xenomai/system.h:260,
                 from sysroot/usr/include/xenomai/nucleus/types.h:36,
                 from sysroot/usr/include/xenomai/nucleus/thread.h:25,
                 from sysroot/usr/include/xenomai/nucleus/sched.h:31,
                 from sysroot/usr/include/xenomai/native/task.h:25,
                 from main.cpp:1:
sysroot/usr/include/xenomai/asm/xenomai/syscall.h:108:34: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
sysroot/usr/include/xenomai/asm/xenomai/syscall.h:178:52: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
In file included from sysroot/usr/include/xenomai/nucleus/system.h:27:0,
                 from sysroot/usr/include/xenomai/asm/xenomai/system.h:260,
                 from sysroot/usr/include/xenomai/nucleus/types.h:36,
                 from sysroot/usr/include/xenomai/nucleus/thread.h:25,
                 from sysroot/usr/include/xenomai/nucleus/sched.h:31,
                 from sysroot/usr/include/xenomai/native/task.h:25,
                 from main.cpp:1:
sysroot/usr/include/xenomai/nucleus/trace.h:56:1: error: ISO C99 requires rest arguments to be used
sysroot/usr/include/xenomai/nucleus/trace.h:61:1: error: ISO C99 requires rest arguments to be used
sysroot/usr/include/xenomai/nucleus/trace.h:66:1: error: ISO C99 requires rest arguments to be used
sysroot/usr/include/xenomai/nucleus/trace.h:71:1: error: ISO C99 requires rest arguments to be used
sysroot/usr/include/xenomai/nucleus/trace.h:76:1: error: ISO C99 requires rest arguments to be used
sysroot/usr/include/xenomai/nucleus/trace.h:82:1: error: ISO C99 requires rest arguments to be used
sysroot/usr/include/xenomai/nucleus/trace.h:87:1: error: ISO C99 requires rest arguments to be used
sysroot/usr/include/xenomai/nucleus/trace.h:94:1: error: ISO C99 requires rest arguments to be used
In file included from sysroot/usr/include/xenomai/nucleus/thread.h:25:0,
                 from sysroot/usr/include/xenomai/nucleus/sched.h:31,
                 from sysroot/usr/include/xenomai/native/task.h:25,
                 from main.cpp:1:
sysroot/usr/include/xenomai/nucleus/types.h:133:26: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
sysroot/usr/include/xenomai/nucleus/types.h:134:27: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
sysroot/usr/include/xenomai/nucleus/types.h:135:27: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
sysroot/usr/include/xenomai/nucleus/types.h:136:26: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
sysroot/usr/include/xenomai/nucleus/types.h:137:35: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
sysroot/usr/include/xenomai/nucleus/types.h:139:32: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
In file included from sysroot/usr/include/xenomai/nucleus/system.h:27:0,
                 from sysroot/usr/include/xenomai/asm/xenomai/system.h:260,
                 from sysroot/usr/include/xenomai/nucleus/types.h:36,
                 from sysroot/usr/include/xenomai/nucleus/thread.h:25,
                 from sysroot/usr/include/xenomai/nucleus/sched.h:31,
                 from sysroot/usr/include/xenomai/native/task.h:25,
                 from main.cpp:1:
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_max_begin(long unsigned int)':
sysroot/usr/include/xenomai/nucleus/trace.h:56:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_max_end(long unsigned int)':
sysroot/usr/include/xenomai/nucleus/trace.h:61:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_max_reset()':
sysroot/usr/include/xenomai/nucleus/trace.h:66:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_user_start()':
sysroot/usr/include/xenomai/nucleus/trace.h:71:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_user_stop(long unsigned int)':
sysroot/usr/include/xenomai/nucleus/trace.h:76:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_user_freeze(long unsigned int, int)':
sysroot/usr/include/xenomai/nucleus/trace.h:81:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_special(unsigned char, long unsigned int)':
sysroot/usr/include/xenomai/nucleus/trace.h:87:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
sysroot/usr/include/xenomai/nucleus/trace.h: In function 'int xntrace_special_u64(unsigned char, long long unsigned int)':
sysroot/usr/include/xenomai/nucleus/trace.h:92:9: error: ISO C++ forbids braced-groups within expressions [-pedantic]
make: *** [main.o] Error 1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-28 14:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.