Skip to content

Commit

Permalink
Merge pull request #1835 from joe-rivos/fix-ignored-attributes-warning
Browse files Browse the repository at this point in the history
Fix ignored-attributes warning for unique_ptr declaration
  • Loading branch information
aswaterman authored Oct 15, 2024
2 parents aacfc53 + a93eb1b commit fa694e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/log_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class log_file_t
FILE *get() { return wrapped_file ? wrapped_file.get() : stderr; }

private:
std::unique_ptr<FILE, decltype(&fclose)> wrapped_file;
std::unique_ptr<FILE, int(*)(FILE*)> wrapped_file;
};

#endif

0 comments on commit fa694e2

Please sign in to comment.