Skip to content

Commit

Permalink
Fix warnings in logging.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Nov 16, 2023
1 parent 1c9413b commit e7d3bb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autogit/include/autogit/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ namespace logging_compress__ {
FILE* in = fopen(infile.c_str(), "rb");
if (!in)
return false;
std::unique_ptr<FILE, decltype(&fclose)> FILE_closer(in, &fclose);
using FileCloserType = int (*)(FILE*);
std::unique_ptr<FILE, FileCloserType> FILE_closer(in, &fclose);

std::unique_ptr<char[]> bufs(new char[LOGGING_GZ_BUFLEN]);
char* buf = bufs.get();
Expand Down

0 comments on commit e7d3bb4

Please sign in to comment.