mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-03-01 01:53:18 +01:00
TESTS: Function parameters cannot be named "data" when using Raisonance STM8 compiler.
This commit is contained in:
@@ -62,7 +62,7 @@ static volatile int g_failures;
|
||||
|
||||
|
||||
/* Forward declarations */
|
||||
static void test_thread_func (uint32_t data);
|
||||
static void test_thread_func (uint32_t param);
|
||||
|
||||
|
||||
/**
|
||||
@@ -237,17 +237,20 @@ uint32_t test_start (void)
|
||||
* Entry point for test thread. The same thread entry point is used for all
|
||||
* four test threads.
|
||||
*
|
||||
* @param[in] data Unused (optional thread entry parameter)
|
||||
* @param[in] param Unused (optional thread entry parameter)
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
static void test_thread_func (uint32_t data)
|
||||
static void test_thread_func (uint32_t param)
|
||||
{
|
||||
uint32_t loop_cnt;
|
||||
uint8_t status;
|
||||
uint8_t msg;
|
||||
CRITICAL_STORE;
|
||||
|
||||
/* Compiler warnings */
|
||||
param = param;
|
||||
|
||||
/* Run a Put/Get pair many times */
|
||||
loop_cnt = NUM_TEST_LOOPS;
|
||||
while (loop_cnt--)
|
||||
|
||||
Reference in New Issue
Block a user