# -Wduplicated-branches
# -Wuseless-cast
)
-
- # TODO: Exact version or reason unknown, discovered in Ubuntu 14 Docker test
- # with GCC 4.8.4
- if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8.5)
- add_compile_flag_if_supported(
- CCACHE_COMPILER_WARNINGS "-Wno-missing-field-initializers")
- add_compile_flag_if_supported(
- CCACHE_COMPILER_WARNINGS "-Wno-unused-variable")
- endif()
elseif(MSVC)
# Remove any warning level flags added by CMake.
string(REGEX REPLACE "/W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
-// Copyright (C) 2020-2021 Joel Rosdahl and other contributors
+// Copyright (C) 2020-2022 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
TemporaryFile(TemporaryFile&& other) noexcept = default;
- // Note: Should be declared noexcept, but since GCC 4.8 trips on it, don't do
- // that for now.
- TemporaryFile& operator=(TemporaryFile&& other) = default;
+ TemporaryFile& operator=(TemporaryFile&& other) noexcept = default;
// The resulting open file descriptor in read/write mode. Unset on error.
Fd fd;