Skip to content

Commit d4b863c

Browse files
dkorpeldlang-bot
authored andcommitted
Mark _d_initMonoTime nothrow @nogc
1 parent 454471d commit d4b863c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/time.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,7 +2488,7 @@ private immutable long[__traits(allMembers, ClockType).length] _ticksPerSecond;
24882488
// https://issues.dlang.org/show_bug.cgi?id=14863
24892489
// The assert will occur when someone attempts to use _ticksPerSecond for that
24902490
// value.
2491-
extern(C) void _d_initMonoTime()
2491+
extern(C) void _d_initMonoTime() @nogc nothrow
24922492
{
24932493
// We need a mutable pointer to the ticksPerSecond array. Although this
24942494
// would appear to break immutability, it is logically the same as a static
@@ -3823,7 +3823,7 @@ unittest
38233823
}
38243824

38253825
version (Darwin)
3826-
long machTicksPerSecond()
3826+
long machTicksPerSecond() @nogc nothrow
38273827
{
38283828
// Be optimistic that ticksPerSecond (1e9*denom/numer) is integral. So far
38293829
// so good on Darwin based platforms OS X, iOS.

src/rt/dmain2.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extern (C) void rt_moduleDtor();
7474
extern (C) void rt_moduleTlsDtor();
7575
extern (C) void thread_joinAll();
7676
extern (C) UnitTestResult runModuleUnitTests();
77-
extern (C) void _d_initMonoTime();
77+
extern (C) void _d_initMonoTime() @nogc nothrow;
7878

7979
version (CRuntime_Microsoft)
8080
{

0 commit comments

Comments
 (0)