[rtems-central commit] spec: Ignore array bounds warnings

Sebastian Huber sebh at rtems.org
Mon Sep 5 06:47:01 UTC 2022


Module:    rtems-central
Branch:    master
Commit:    654b3ee0ce45239235e7e3afac72c3eca477f291
Changeset: http://git.rtems.org/rtems-central/commit/?id=654b3ee0ce45239235e7e3afac72c3eca477f291

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Sep  5 08:56:15 2022 +0200

spec: Ignore array bounds warnings

Update #4702.

---

 spec/rtems/intr/req/get-affinity.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

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



More information about the vc mailing list