• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ

よく使われているワード(クリックで追加)

javaandroidc++linuxc#windowsobjective-ccocoaqtpython誰得phprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A D package containing my single-file modules


コミットメタ情報

リビジョン7efd91427f30bbf776cd4db993c19a3462b724a8 (tree)
日時2023-03-19 15:24:14
作者nemophila <stigma+osdn@disr...>
コミッターnemophila

ログメッセージ

trash: Fix compiling on Linux

Fix a compiler warning about unreachable code. By default, dub
treats these (and any) warnings as errors.

変更サマリ

差分

--- a/source/mlib/trash.d
+++ b/source/mlib/trash.d
@@ -161,19 +161,19 @@ private:
161161 ulong getDevice(string path) {
162162 version (Posix) {
163163 return _posix_getDevice(path);
164+ } else {
165+ // Not used on Windows
166+ return 0;
164167 }
165-
166- // Not used on Windows
167- return 0;
168168 }
169169
170170 string getHomeDirectory() {
171171 version (Posix) {
172172 return environment["HOME"];
173+ } else {
174+ // Not used on Windows
175+ return "";
173176 }
174-
175- // Not used on Windows
176- return "";
177177 }
178178
179179 bool isParent(string parent, string path) {