Skip to content

Commit

Permalink
Eliminate warnings in micro:bit test files.
Browse files Browse the repository at this point in the history
  * test-microbit/circle.adb: add warnings round System.HardFault_Handling.
  * test-microbit/events.adb: likewise.
  • Loading branch information
simonjwright committed Mar 27, 2021
1 parent 4222b6a commit a39a65e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 5 additions & 3 deletions test-microbit/circle.adb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Copyright (C) 2018,2020 Free Software Foundation, Inc.
-- Copyright (C) 2018-2021 Free Software Foundation, Inc.

-- This file is part of the Cortex GNAT RTS package.
--
Expand All @@ -16,8 +16,10 @@
-- along with this program; see the file COPYING3. If not, see
-- <http://www.gnu.org/licenses/>.

with Hardfault_Handling;
pragma Unreferenced (Hardfault_Handling);
pragma Warnings (Off, "internal GNAT unit");
with System.Hardfault_Handling;
pragma Warnings (On, "internal GNAT unit");
pragma Unreferenced (System.Hardfault_Handling);

with Lights;
pragma Unreferenced (Lights);
Expand Down
11 changes: 8 additions & 3 deletions test-microbit/events.adb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Copyright (C) 2020 Free Software Foundation, Inc.
-- Copyright (C) 2020-2021 Free Software Foundation, Inc.

-- This file is part of the Cortex GNAT RTS package.
--
Expand All @@ -18,8 +18,12 @@

with Event_Support;
with Ada.Real_Time.Timing_Events;
-- with Hardfault_Handling;
-- pragma Unreferenced (Hardfault_Handling);

pragma Warnings (Off, "internal GNAT unit");
with System.Hardfault_Handling;
pragma Warnings (On, "internal GNAT unit");
pragma Unreferenced (System.Hardfault_Handling);

procedure Events is
-- Environment_Task_Storage_Size : constant Natural := 1536
-- with
Expand All @@ -36,5 +40,6 @@ begin
(Ada.Real_Time.Timing_Events.Timing_Event (Event_Support.Slow));
Event_Support.Handler
(Ada.Real_Time.Timing_Events.Timing_Event (Event_Support.Quick));

delay until Ada.Real_Time.Time_Last;
end Events;

0 comments on commit a39a65e

Please sign in to comment.