diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-10-14 13:45:48 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-10-21 10:53:20 +0300 |
commit | 75c6565ec8f75d690495bf4631cda3da92c02b6a (patch) | |
tree | d7974a7e09dc623bbbf4d29c5189d3ff73d51112 /platform/linux-generic/include/odp_timer_internal.h | |
parent | 30ad629ac02a497a1cf6508ea90f4e6dd200b89b (diff) |
linux-gen: fix invalid use of structure with flexible array member errors
Fix "invalid use of structure with flexible array member" errors when
building with 'pedantic' option. Internal queue_num_tbl_t struct was not
used, so it has been removed.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_timer_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_timer_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_timer_internal.h b/platform/linux-generic/include/odp_timer_internal.h index 23fd54bf9..435fa8b70 100644 --- a/platform/linux-generic/include/odp_timer_internal.h +++ b/platform/linux-generic/include/odp_timer_internal.h @@ -20,6 +20,8 @@ #include <odp/api/timer.h> #include <odp_global_data.h> +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" /** * Internal Timeout header */ @@ -37,6 +39,7 @@ typedef struct { odp_timer_t timer; } odp_timeout_hdr_t; +#pragma GCC diagnostic pop /* A larger decrement value should be used after receiving events compared to * an 'empty' call. */ |