From: cpickett Date: Sun, 28 Dec 2008 22:09:48 +0000 (+0000) Subject: * move CK_ATTRIBUTE_UNUSED attribute after parameter name in sleep() X-Git-Tag: 0.10.0~692 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4a86f1247454123dec45f27095f8abbe972a65f;p=check * move CK_ATTRIBUTE_UNUSED attribute after parameter name in sleep() and __testname() * add CK_ATTRIBUTE_UNUSED to fname parameter in tcase_fn_start git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@470 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/lib/sleep.c b/lib/sleep.c index b3246b0..90bd8ea 100644 --- a/lib/sleep.c +++ b/lib/sleep.c @@ -4,7 +4,7 @@ #include "libcompat.h" unsigned int -sleep (unsigned int CK_ATTRIBUTE_UNUSED seconds) +sleep (unsigned int seconds CK_ATTRIBUTE_UNUSED) { return 0; } diff --git a/src/check.c b/src/check.c index b937ce3..cd2a1e3 100644 --- a/src/check.c +++ b/src/check.c @@ -183,7 +183,7 @@ void tcase_set_timeout (TCase *tc, int timeout) tc->timeout = timeout; } -void tcase_fn_start (const char *fname, const char *file, int line) +void tcase_fn_start (const char *fname CK_ATTRIBUTE_UNUSED, const char *file, int line) { send_ctx_info (CK_CTX_TEST); send_loc_info (file, line); diff --git a/src/check.h.in b/src/check.h.in index 57f4a5b..6a5f191 100644 --- a/src/check.h.in +++ b/src/check.h.in @@ -197,7 +197,7 @@ void CK_EXPORT tcase_fn_start (const char *fname, const char *file, int line); One must use braces within a START_/END_ pair to declare new variables */ #define START_TEST(__testname)\ -static void __testname (int CK_ATTRIBUTE_UNUSED _i)\ +static void __testname (int _i CK_ATTRIBUTE_UNUSED)\ {\ tcase_fn_start (""# __testname, __FILE__, __LINE__);