Module: xenomai-2.6 Branch: master Commit: 3f54a42bd19ff0daadce29b1b8a95e401d6f09a8 URL: http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=3f54a42bd19ff0daadce29b1b8a95e401d6f09a8
Author: Philippe Gerum <r...@xenomai.org> Date: Mon Apr 23 13:22:56 2012 +0200 nucleus: silence warning --- include/nucleus/thread.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nucleus/thread.h b/include/nucleus/thread.h index d5dc531..8934e19 100644 --- a/include/nucleus/thread.h +++ b/include/nucleus/thread.h @@ -401,8 +401,8 @@ typedef struct xnhook { #define xnthread_amok_p(thread) xnthread_test_info(thread, XNAMOK) #define xnthread_clear_amok(thread) xnthread_clear_info(thread, XNAMOK) #else /* !CONFIG_XENO_OPT_WATCHDOG */ -#define xnthread_amok_p(thread) (0) -#define xnthread_clear_amok(thread) do { } while (0) +#define xnthread_amok_p(thread) ({ (void)(thread); 0; }) +#define xnthread_clear_amok(thread) do { (void)(thread); } while (0) #endif /* !CONFIG_XENO_OPT_WATCHDOG */ /* Class-level operations for threads. */ _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git