[PATCH 1/2] spec: Silence benign warnings in 3rd party code

Kinsey Moore kinsey.moore at oarcorp.com
Tue Apr 4 21:33:58 UTC 2023


Do not warn about excessive shifts in imported Xilinx driver code when
building with the ILP32 ABI. The two instances of this warning produce
the desired effect of setting the upper address bits to 0.
---
 spec/build/bsps/objnandpsu.yml | 3 ++-
 spec/build/bsps/objqspipsu.yml | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/spec/build/bsps/objnandpsu.yml b/spec/build/bsps/objnandpsu.yml
index 253c598e8c..3ed622fcc3 100644
--- a/spec/build/bsps/objnandpsu.yml
+++ b/spec/build/bsps/objnandpsu.yml
@@ -1,6 +1,7 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 build-type: objects
-cflags: []
+cflags:
+- -Wno-shift-count-overflow
 copyrights:
 - Copyright (C) 2022 On-Line Applications Research (OAR)
 cppflags: []
diff --git a/spec/build/bsps/objqspipsu.yml b/spec/build/bsps/objqspipsu.yml
index 205172146e..b4c63bc632 100644
--- a/spec/build/bsps/objqspipsu.yml
+++ b/spec/build/bsps/objqspipsu.yml
@@ -1,6 +1,7 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 build-type: objects
-cflags: []
+cflags:
+- -Wno-shift-count-overflow
 copyrights:
 - Copyright (C) 2022 On-Line Applications Research (OAR)
 cppflags: []
-- 
2.30.2



More information about the devel mailing list