summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2019-04-15 06:42:57 +0200
committerEugen Wissner <belka@caraus.de>2019-04-15 07:05:56 +0200
commitf66935f40d58e33c2882f5899186dce743bc91ad (patch)
treeb244124ed608b74598795d55ba0d82bfa9fee4d3 /os
parent9814e5ad8ef246273cad80f86c95c3bce047509a (diff)
downloadtanya-f66935f40d58e33c2882f5899186dce743bc91ad.tar.gz
Build with -dip1000. Fix #85
Diffstat (limited to 'os')
-rw-r--r--os/dub.json3
-rw-r--r--os/tanya/os/error.d4
2 files changed, 4 insertions, 3 deletions
diff --git a/os/dub.json b/os/dub.json
index 647e24d..31537a1 100644
--- a/os/dub.json
+++ b/os/dub.json
@@ -12,5 +12,6 @@
],
"importPaths": [
"."
- ]
+ ],
+ "dflags": ["-dip1000"]
}
diff --git a/os/tanya/os/error.d b/os/tanya/os/error.d
index 0fabfc2..c1b70c6 100644
--- a/os/tanya/os/error.d
+++ b/os/tanya/os/error.d
@@ -307,14 +307,14 @@ struct ErrorCode
*
* Returns: $(D_KEYWORD this).
*/
- ref ErrorCode opAssign(const ErrorNo that) @nogc nothrow pure @safe
+ ref ErrorCode opAssign(const ErrorNo that) return @nogc nothrow pure @safe
{
this.value_ = that;
return this;
}
/// ditto
- ref ErrorCode opAssign(const ErrorCode that) @nogc nothrow pure @safe
+ ref ErrorCode opAssign(const ErrorCode that) return @nogc nothrow pure @safe
{
this.value_ = that.value_;
return this;