diff options
| author | Thomas Monjalon <[email protected]> | 2020-02-09 16:54:54 +0100 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2020-04-16 18:30:58 +0200 |
| commit | f2fc83b40f06da6a6b2476005279ba52d4ce3c44 (patch) | |
| tree | 70dd20db10b804ecfa3b281518b09564272b065b /examples/timer | |
| parent | d0ac7bb577e9d2e2a02abc2b159a486884f0274a (diff) | |
replace unused attributes
There is a common macro __rte_unused, avoiding warnings,
which is now used where appropriate for consistency.
Signed-off-by: Thomas Monjalon <[email protected]>
Diffstat (limited to 'examples/timer')
| -rw-r--r-- | examples/timer/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/timer/main.c b/examples/timer/main.c index 968a941367..00c251c409 100644 --- a/examples/timer/main.c +++ b/examples/timer/main.c @@ -25,8 +25,8 @@ static struct rte_timer timer1; /* timer0 callback */ static void -timer0_cb(__attribute__((unused)) struct rte_timer *tim, - __attribute__((unused)) void *arg) +timer0_cb(__rte_unused struct rte_timer *tim, + __rte_unused void *arg) { static unsigned counter = 0; unsigned lcore_id = rte_lcore_id(); @@ -41,8 +41,8 @@ timer0_cb(__attribute__((unused)) struct rte_timer *tim, /* timer1 callback */ static void -timer1_cb(__attribute__((unused)) struct rte_timer *tim, - __attribute__((unused)) void *arg) +timer1_cb(__rte_unused struct rte_timer *tim, + __rte_unused void *arg) { unsigned lcore_id = rte_lcore_id(); uint64_t hz; @@ -56,7 +56,7 @@ timer1_cb(__attribute__((unused)) struct rte_timer *tim, } static __attribute__((noreturn)) int -lcore_mainloop(__attribute__((unused)) void *arg) +lcore_mainloop(__rte_unused void *arg) { uint64_t prev_tsc = 0, cur_tsc, diff_tsc; unsigned lcore_id; |
