-- Start of processing for Time_Of
begin
+ pragma Annotate (Gnatcheck, Exempt_On, "Improper_Returns",
+ "early returns for performance");
+
-- If SC is so far out of range that there is no possibility of the
-- addition of TS getting it back in range, raise an exception right
-- away. That way we don't have to worry about SC values overflowing.
Out_Of_Range;
end if;
end if;
+
+ pragma Annotate (Gnatcheck, Exempt_Off, "Improper_Returns");
end Time_Of;
-----------------
Result := pthread_getspecific (ATCB_Key);
-- If the key value is Null then it is a non-Ada task
-
- if Result /= System.Null_Address then
- return To_Task_Id (Result);
- else
- return Register_Foreign_Thread;
- end if;
+ return
+ (if Result /= System.Null_Address then To_Task_Id (Result)
+ else Register_Foreign_Thread
+ );
end Self;
end Specific;
pragma Assert (Digs'First < Digs'Last);
begin
+ pragma Annotate (Gnatcheck, Exempt_On, "Improper_Returns",
+ "early returns for performance");
+
-- Nothing to do if rounding past the last digit we have
if N >= LD then
Digits_Before_Point := Digits_Before_Point + 1;
end if;
end if;
+
+ pragma Annotate (Gnatcheck, Exempt_Off, "Improper_Returns");
end Round;
---------
-- Start of processing for Set_Decimal_Digits
begin
+ pragma Annotate (Gnatcheck, Exempt_On, "Improper_Returns",
+ "early returns for performance");
+
-- Case of exponent given
if Exp > 0 then
end if;
end if;
end if;
+
+ pragma Annotate (Gnatcheck, Exempt_Off, "Improper_Returns");
end Set_Decimal_Digits;
--------------------------------
function Number_Of_CPUs return CPU is
begin
+ pragma Annotate (Gnatcheck, Exempt_On, "Improper_Returns",
+ "early returns for performance");
+
if CPU'Last = 1 then
return 1;
else
return CPU (Gnat_Number_Of_CPUs);
end;
end if;
+
+ pragma Annotate (Gnatcheck, Exempt_Off, "Improper_Returns");
end Number_Of_CPUs;
end System.Multiprocessors;