diff mbox

[v3,2/2] validation: timer: use unused attribute

Message ID 1426789209-13903-2-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 9c3e7f68c416fea0b820ff9644aa4195247f3e1d
Headers show

Commit Message

Mike Holmes March 19, 2015, 6:20 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 test/validation/odp_timer.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Bill Fischofer March 20, 2015, 3:26 a.m. UTC | #1
On Thu, Mar 19, 2015 at 1:20 PM, Mike Holmes <mike.holmes@linaro.org> wrote:

> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
>

Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>


> ---
>  test/validation/odp_timer.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/test/validation/odp_timer.c b/test/validation/odp_timer.c
> index fd8065d..1bc4e2a 100644
> --- a/test/validation/odp_timer.c
> +++ b/test/validation/odp_timer.c
> @@ -267,13 +267,12 @@ static void handle_tmo(odp_event_t ev, bool stale,
> uint64_t prev_tick)
>
>  /* @private Worker thread entrypoint which performs timer
> alloc/set/cancel/free
>   * tests */
> -static void *worker_entrypoint(void *arg)
> +static void *worker_entrypoint(void *arg TEST_UNUSED)
>  {
>         int thr = odp_thread_id();
>         uint32_t i;
>         unsigned seed = thr;
>         int rc;
> -       (void)arg;
>
>         odp_queue_t queue = odp_queue_create("timer_queue",
>                                              ODP_QUEUE_TYPE_POLL,
> --
> 2.1.0
>
>
Maxim Uvarov March 23, 2015, 10:13 a.m. UTC | #2
Merged,
Maxim.

On 03/20/15 06:26, Bill Fischofer wrote:
>
>
> On Thu, Mar 19, 2015 at 1:20 PM, Mike Holmes <mike.holmes@linaro.org 
> <mailto:mike.holmes@linaro.org>> wrote:
>
>     Signed-off-by: Mike Holmes <mike.holmes@linaro.org
>     <mailto:mike.holmes@linaro.org>>
>
>
> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org 
> <mailto:bill.fischofer@linaro.org>>
>
>     ---
>      test/validation/odp_timer.c | 3 +--
>      1 file changed, 1 insertion(+), 2 deletions(-)
>
>     diff --git a/test/validation/odp_timer.c b/test/validation/odp_timer.c
>     index fd8065d..1bc4e2a 100644
>     --- a/test/validation/odp_timer.c
>     +++ b/test/validation/odp_timer.c
>     @@ -267,13 +267,12 @@ static void handle_tmo(odp_event_t ev, bool
>     stale, uint64_t prev_tick)
>
>      /* @private Worker thread entrypoint which performs timer
>     alloc/set/cancel/free
>       * tests */
>     -static void *worker_entrypoint(void *arg)
>     +static void *worker_entrypoint(void *arg TEST_UNUSED)
>      {
>             int thr = odp_thread_id();
>             uint32_t i;
>             unsigned seed = thr;
>             int rc;
>     -       (void)arg;
>
>             odp_queue_t queue = odp_queue_create("timer_queue",
>      ODP_QUEUE_TYPE_POLL,
>     --
>     2.1.0
>
>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/test/validation/odp_timer.c b/test/validation/odp_timer.c
index fd8065d..1bc4e2a 100644
--- a/test/validation/odp_timer.c
+++ b/test/validation/odp_timer.c
@@ -267,13 +267,12 @@  static void handle_tmo(odp_event_t ev, bool stale, uint64_t prev_tick)
 
 /* @private Worker thread entrypoint which performs timer alloc/set/cancel/free
  * tests */
-static void *worker_entrypoint(void *arg)
+static void *worker_entrypoint(void *arg TEST_UNUSED)
 {
 	int thr = odp_thread_id();
 	uint32_t i;
 	unsigned seed = thr;
 	int rc;
-	(void)arg;
 
 	odp_queue_t queue = odp_queue_create("timer_queue",
 					     ODP_QUEUE_TYPE_POLL,