Fix "unnecessary with of ancestor [-gnatwr]"
These warnings are a bit overeager as some of them only apply once
unnecessary `use type ...` clauses are adapted. So we do both in
one patch. This partially fixes building with GCC 12.
Change-Id: Id7e88fe9a3ef7cb10cbc427a052e21f12578a3fd
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/67833
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/common/hw-gfx-gma.ads b/common/hw-gfx-gma.ads
index afd1512..1282e89 100644
--- a/common/hw-gfx-gma.ads
+++ b/common/hw-gfx-gma.ads
@@ -19,6 +19,8 @@
with HW.Port_IO;
with HW.GFX.Framebuffer_Filler;
+use type HW.Word32;
+
package HW.GFX.GMA
with
Abstract_State =>