summaryrefslogtreecommitdiff
path: root/gcc/d/dmd/common/file.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/dmd/common/file.d')
-rw-r--r--gcc/d/dmd/common/file.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/d/dmd/common/file.d b/gcc/d/dmd/common/file.d
index e4483d5f947..8f34b5319a9 100644
--- a/gcc/d/dmd/common/file.d
+++ b/gcc/d/dmd/common/file.d
@@ -25,6 +25,8 @@ import core.sys.posix.unistd;
import dmd.common.string;
+nothrow:
+
/**
Encapsulated management of a memory-mapped file.
@@ -52,6 +54,8 @@ struct FileMapping(Datum)
private const(char)* name;
// state }
+ nothrow:
+
/**
Open `filename` and map it in memory. If `Datum` is `const`, opens for
read-only and maps the content in memory; no error is issued if the file