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/blob.h | |
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/blob.h')
-rw-r--r-- | src/blob.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,6 +3,12 @@ #include "git.h" #include <file.h> +#include <git2.h> +#include <string> +#include <types.h> +namespace Ice { + struct Current; +} namespace GitFS { using namespace NetFS; @@ -24,7 +30,8 @@ namespace GitFS { const Repo * const repo; Git::TreeEntryPtr entry; Git::BlobPtr blob; - const decltype(git_blob_rawsize({})) blobSize; + using BlobSize = decltype(git_blob_rawsize({})); + const BlobSize blobSize; const char * const blobContent; }; } |