From a93eb1b80883df46c44bb0b2715bb6cdb31456ab Mon Sep 17 00:00:00 2001 From: Joseph Faulls Date: Tue, 15 Oct 2024 15:24:31 +0100 Subject: [PATCH] Fix ignored-attributes warning for unique_ptr declaration The attribute `__nonnull` was added to `fclose` in glibc 2.38, which causes a warning when using its `decltype` on a template argument. --- riscv/log_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/log_file.h b/riscv/log_file.h index d039859dc6..9e210bba02 100644 --- a/riscv/log_file.h +++ b/riscv/log_file.h @@ -31,7 +31,7 @@ class log_file_t FILE *get() { return wrapped_file ? wrapped_file.get() : stderr; } private: - std::unique_ptr wrapped_file; + std::unique_ptr wrapped_file; }; #endif