summaryrefslogtreecommitdiff
path: root/src/git.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2022-02-15 17:34:51 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2022-02-15 17:34:51 +0000
commit4ac149951b2020b4a6dafb0455d3f523e7c9cfe6 (patch)
tree698d4471463b68bc16ce2f291a0eaab86bcb5e13 /src/git.cpp
parentBump to C++20 for compat with other libs (diff)
downloadnetfs-gitfs-4ac149951b2020b4a6dafb0455d3f523e7c9cfe6.tar.bz2
netfs-gitfs-4ac149951b2020b4a6dafb0455d3f523e7c9cfe6.tar.xz
netfs-gitfs-4ac149951b2020b4a6dafb0455d3f523e7c9cfe6.zip
Fix up all warnings from all the toolsnetfs-gitfs-0.2.2
Diffstat (limited to 'src/git.cpp')
-rw-r--r--src/git.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/git.cpp b/src/git.cpp
index 1c9da62..e6aed3f 100644
--- a/src/git.cpp
+++ b/src/git.cpp
@@ -1,6 +1,7 @@
#include "git.h"
+#include <array>
+#include <cerrno>
#include <exceptions.h>
-#include <execinfo.h>
#include <sys/stat.h>
#include <types.h>
@@ -99,7 +100,7 @@ namespace NetFS {
operator<<(Attr & a, const git_blob & b)
{
a.blockSize = 1;
- a.blocks = a.size = git_blob_rawsize(&b);
+ a.blocks = a.size = static_cast<decltype(Attr::blocks)>(git_blob_rawsize(&b));
return a;
}
}