diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-02-15 17:34:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-02-15 17:34:51 +0000 |
commit | 4ac149951b2020b4a6dafb0455d3f523e7c9cfe6 (patch) | |
tree | 698d4471463b68bc16ce2f291a0eaab86bcb5e13 /src/git.cpp | |
parent | Bump to C++20 for compat with other libs (diff) | |
download | netfs-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.cpp | 5 |
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; } } |