mirror of
https://github.com/nlohmann/json.git
synced 2026-05-03 04:45:24 +00:00
tests: Fix ignored attributes warning during build (#4670)
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org> Co-authored-by: Pragyansh Chaturvedi <pragyansh.chaturvedi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b477d2b95e
commit
cd92c09c18
@@ -18,7 +18,8 @@ namespace utils
|
||||
|
||||
inline bool check_testsuite_downloaded()
|
||||
{
|
||||
const std::unique_ptr<std::FILE, decltype(&std::fclose)> file(std::fopen(TEST_DATA_DIRECTORY "/README.md", "r"), &std::fclose);
|
||||
using FilePtr = std::unique_ptr<FILE, int(*)(FILE*)>;
|
||||
const FilePtr file(std::fopen(TEST_DATA_DIRECTORY "/README.md", "r"), std::fclose);
|
||||
return file != nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user