summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-02-16 08:50:19 +0100
committerMartin Michlmayr <tbm@cyrius.com>2023-02-20 12:22:23 +0800
commit179646d1c12d93202afad0bf84490778283ec2e8 (patch)
tree9bdfb33dbc314513f40627f44f3f4c4bd26d233f /src/utils.cc
parent7de9854f4c1115611ee9cfa1a68987a1ec7dc905 (diff)
downloadfork-ledger-179646d1c12d93202afad0bf84490778283ec2e8.tar.gz
fork-ledger-179646d1c12d93202afad0bf84490778283ec2e8.tar.bz2
fork-ledger-179646d1c12d93202afad0bf84490778283ec2e8.zip
Fix compiler warnings
minimizing use of deprecated API where possible.
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.cc b/src/utils.cc
index e6147f09..1d457891 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -849,7 +849,11 @@ path resolve_path(const path& pathname)
path temp = pathname;
if (temp.string()[0] == '~')
temp = expand_path(temp);
+#if (BOOST_VERSION >= 106000)
+ temp.lexically_normal();
+#else
temp.normalize();
+#endif
return temp;
}