mirror of
https://github.com/libAthena/athena.git
synced 2025-06-05 22:23:35 +00:00
Silence warning about ignored attributes
This commit is contained in:
parent
7d7d0e0891
commit
d2d54fe6ef
@ -125,7 +125,7 @@ typedef void (*atEXCEPTION_HANDLER)(athena::error::Level level, const char* /*fi
|
||||
|
||||
atEXCEPTION_HANDLER atGetExceptionHandler();
|
||||
/**
|
||||
* atSetExceptionHandler is only meant to be used a the start and end of an application's lifetime,
|
||||
* atSetExceptionHandler is only meant to be used at the start and end of an application's lifetime,
|
||||
* this function cannot be considered thread-safe, therefore modifying during runtime is not recommended.
|
||||
*/
|
||||
void atSetExceptionHandler(atEXCEPTION_HANDLER func);
|
||||
|
@ -189,7 +189,8 @@ void MemoryWriter::save(std::string_view filename) {
|
||||
m_filepath = filename;
|
||||
}
|
||||
|
||||
std::unique_ptr<FILE, decltype(&std::fclose)> out{std::fopen(m_filepath.c_str(), "wb"), std::fclose};
|
||||
auto deleter = [](FILE* f) { return std::fclose(f); };
|
||||
std::unique_ptr<FILE, decltype(deleter)> out{std::fopen(m_filepath.c_str(), "wb"), deleter};
|
||||
if (!out) {
|
||||
atError("Unable to open file '{}'", m_filepath);
|
||||
setError();
|
||||
|
Loading…
x
Reference in New Issue
Block a user