diff --git a/src/io/FileOutputStream.cxx b/src/io/FileOutputStream.cxx index cd9cc667f..41bfed299 100644 --- a/src/io/FileOutputStream.cxx +++ b/src/io/FileOutputStream.cxx @@ -187,7 +187,7 @@ OpenTempFile(FileDescriptor directory_fd, #endif /* HAVE_O_TMPFILE */ inline void -FileOutputStream::OpenCreate([[maybe_unused]] bool visible) +FileOutputStream::OpenCreate(bool visible) { #ifdef HAVE_O_TMPFILE /* try Linux's O_TMPFILE first */ diff --git a/src/io/FileOutputStream.hxx b/src/io/FileOutputStream.hxx index da79c92bd..5555e083b 100644 --- a/src/io/FileOutputStream.hxx +++ b/src/io/FileOutputStream.hxx @@ -1,14 +1,13 @@ // SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann -#ifndef FILE_OUTPUT_STREAM_HXX -#define FILE_OUTPUT_STREAM_HXX +#pragma once #include "OutputStream.hxx" #include "fs/AllocatedPath.hxx" #ifndef _WIN32 -#include "io/FileDescriptor.hxx" +#include "FileDescriptor.hxx" #endif #include @@ -190,5 +189,3 @@ private: void RenameOrThrow(Path old_path, Path new_path) const; void Delete(Path delete_path) const noexcept; }; - -#endif