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
#include "libcompat.h"
unsigned int
-sleep (unsigned int CK_ATTRIBUTE_UNUSED seconds)
+sleep (unsigned int seconds CK_ATTRIBUTE_UNUSED)
{
return 0;
}
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);
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__);