posix file: Explicitly disable SPARK_Mode for hw_file_map()
The GNAT compiler also checks some SPARK rules now and this function
has side-effects. Hence we have to hide it.
Change-Id: I4a113e3b9a34ba0a27e7902a3bd08533fd73fcda
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/libhwbase/+/452
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/ada/posix/hw-file.adb b/ada/posix/hw-file.adb
index dd9d7f3..9755d13 100644
--- a/ada/posix/hw-file.adb
+++ b/ada/posix/hw-file.adb
@@ -33,7 +33,9 @@
off : Word32;
mode : Word32;
copy : int)
- return int;
+ return int
+ with
+ SPARK_Mode => Off;
pragma Import (C, c_map, "hw_file_map");
procedure Map