summaryrefslogtreecommitdiff
path: root/libstd/getcwd.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-06 18:13:50 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-06 18:13:50 -0700
commitccee477034a0a63df7a5864b375a243f8e4f246a (patch)
tree377ad14e171a0dca10ee2325d93eb225664f896c /libstd/getcwd.myr
parent685513dd421ded344ae4a4e2c498928fbdbb00aa (diff)
downloadmc-ccee477034a0a63df7a5864b375a243f8e4f246a.tar.gz
Compile error on reaching end of func without return.
Diffstat (limited to 'libstd/getcwd.myr')
-rw-r--r--libstd/getcwd.myr2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstd/getcwd.myr b/libstd/getcwd.myr
index 4c53bb2..c9dbbea 100644
--- a/libstd/getcwd.myr
+++ b/libstd/getcwd.myr
@@ -25,5 +25,7 @@ const getcwd = {
len *= 2
;;
;;
+ /* unreachable; shut up return without value analysis */
+ -> ""
}