diff options
Diffstat (limited to 'platform/linux-generic/odp_schedule_basic.c')
-rw-r--r-- | platform/linux-generic/odp_schedule_basic.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/platform/linux-generic/odp_schedule_basic.c b/platform/linux-generic/odp_schedule_basic.c index eb17e95eb..f86914722 100644 --- a/platform/linux-generic/odp_schedule_basic.c +++ b/platform/linux-generic/odp_schedule_basic.c @@ -195,6 +195,8 @@ typedef struct ODP_ALIGNED_CACHE { } sched_local_t; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" /* Priority queue */ typedef struct ODP_ALIGNED_CACHE { /* Ring header */ @@ -204,6 +206,7 @@ typedef struct ODP_ALIGNED_CACHE { uint32_t queue_index[MAX_RING_SIZE]; /* overlaps with ring.data[] */ } prio_queue_t; +#pragma GCC diagnostic pop /* Order context of a queue */ typedef struct ODP_ALIGNED_CACHE { @@ -247,8 +250,10 @@ typedef struct { } queue[CONFIG_MAX_SCHED_QUEUES]; /* Scheduler priority queues */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" prio_queue_t prio_q[NUM_SCHED_GRPS][NUM_PRIO][MAX_SPREAD]; - +#pragma GCC diagnostic pop uint32_t prio_q_count[NUM_SCHED_GRPS][NUM_PRIO][MAX_SPREAD]; odp_thrmask_t mask_all; @@ -1960,7 +1965,7 @@ static int schedule_num_grps(void) static void schedule_get_config(schedule_config_t *config) { *config = sched->config_if; -}; +} static int schedule_capability(odp_schedule_capability_t *capa) { |