summaryrefslogtreecommitdiff
path: root/gcc/ada/s-tadeca.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-20 15:25:44 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-20 15:25:44 +0000
commit76860de6f04d53835f0b4418d8b6d96f1e79a09b (patch)
tree9e69f6d6604fa710148467001bcae9948127dc8a /gcc/ada/s-tadeca.adb
parent6cf6bd523acf45111c5672120e5dd528f0c57123 (diff)
downloadgcc-76860de6f04d53835f0b4418d8b6d96f1e79a09b.tar.gz
2014-01-20 Robert Dewar <dewar@adacore.com>
* s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads: Minor reformatting and code clean up. 2014-01-20 Arnaud Charlet <charlet@adacore.com> * sem_cat.adb (Validate_Object_Declaration): Relax semantics of objects of private type if Relaxed_RM_Semantics. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206823 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-tadeca.adb')
-rw-r--r--gcc/ada/s-tadeca.adb15
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ada/s-tadeca.adb b/gcc/ada/s-tadeca.adb
index fa1ef05e8d7..99fbe1450b3 100644
--- a/gcc/ada/s-tadeca.adb
+++ b/gcc/ada/s-tadeca.adb
@@ -30,15 +30,15 @@
------------------------------------------------------------------------------
with Ada.Calendar.Delays;
+
with System.OS_Constants;
with System.OS_Primitives;
with System.Task_Primitives.Operations;
with System.Tasking.Initialization;
function System.Tasking.Async_Delays.Enqueue_Calendar
- (T : Ada.Calendar.Time;
- D : Delay_Block_Access)
- return Boolean
+ (T : Ada.Calendar.Time;
+ D : Delay_Block_Access) return Boolean
is
use type Ada.Calendar.Time;
@@ -55,12 +55,13 @@ begin
end if;
-- T is expressed as a duration elapsed since the UNIX epoch, whereas
- -- Time_Enque expects duraction elapsed since the epoch of the Ada
- -- real time clock: compensate if necessary.
+ -- Time_Enque expects duraction elapsed since the epoch of the Ada real-
+ -- time clock: compensate if necessary.
- pragma Warnings (Off);
-- Comparison "SOSC.CLOCK_RT_Ada = SOSC.CLOCK_REALTIME" is compile
- -- time known.
+ -- time known, so turn warnings off.
+
+ pragma Warnings (Off);
if SOSC.CLOCK_RT_Ada /= SOSC.CLOCK_REALTIME then
pragma Warnings (On);