summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-09-05 08:56:15 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-09-05 08:56:15 +0200
commit654b3ee0ce45239235e7e3afac72c3eca477f291 (patch)
treeb4e6e8a4a5c4fe444b202e271e2fc445a4522013
parentspec: Add glossary link (diff)
downloadrtems-central-654b3ee0ce45239235e7e3afac72c3eca477f291.tar.bz2
spec: Ignore array bounds warnings
Update #4702.
-rw-r--r--spec/rtems/intr/req/get-affinity.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/rtems/intr/req/get-affinity.yml b/spec/rtems/intr/req/get-affinity.yml
index bef498ea..08e8acb6 100644
--- a/spec/rtems/intr/req/get-affinity.yml
+++ b/spec/rtems/intr/req/get-affinity.yml
@@ -197,6 +197,9 @@ test-action: |
ctx->vector = BSP_INTERRUPT_VECTOR_COUNT;
}
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Warray-bounds"
+
CPU_FILL_S( sizeof( ctx->cpuset_obj ), ctx->cpuset_obj );
ctx->status = rtems_interrupt_get_affinity(
@@ -215,6 +218,8 @@ test-action: |
}
T_true( CPU_EQUAL_S( sizeof( set ), ctx->cpuset_obj, set ) );
+
+ #pragma GCC diagnostic pop
}
test-brief: null
test-cleanup: null
@@ -290,6 +295,9 @@ test-support: |
rtems_status_code sc;
cpu_set_t set[ 2 ];
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Warray-bounds"
+
if ( attr->can_get_affinity ) {
CPU_ZERO_S( sizeof( ctx->cpuset_obj ), ctx->cpuset_obj );
} else {
@@ -311,6 +319,8 @@ test-support: |
T_rsc( sc, RTEMS_UNSATISFIED );
T_true( CPU_EQUAL_S( sizeof( set ), ctx->cpuset_obj, set ) );
}
+
+ #pragma GCC diagnostic pop
}
test-target: testsuites/validation/tc-intr-get-affinity.c
test-teardown: null