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:
1 parent
b477d2b95e
commit
cd92c09c18
2 files changed
+8
-6
No files matched your search
@@ -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