mirror of
https://github.com/libAthena/athena.git
synced 2025-06-07 15:13:44 +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();
|
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.
|
* this function cannot be considered thread-safe, therefore modifying during runtime is not recommended.
|
||||||
*/
|
*/
|
||||||
void atSetExceptionHandler(atEXCEPTION_HANDLER func);
|
void atSetExceptionHandler(atEXCEPTION_HANDLER func);
|
||||||
|
@ -189,7 +189,8 @@ void MemoryWriter::save(std::string_view filename) {
|
|||||||
m_filepath = 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) {
|
if (!out) {
|
||||||
atError("Unable to open file '{}'", m_filepath);
|
atError("Unable to open file '{}'", m_filepath);
|
||||||
setError();
|
setError();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user