]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Remove obsolete GCC 4.8 workarounds
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 7 Feb 2022 19:31:02 +0000 (20:31 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 7 Feb 2022 19:31:02 +0000 (20:31 +0100)
cmake/DevModeWarnings.cmake
src/TemporaryFile.hpp

index ee464763c5b0219cfe3234cdcbf9d1e21ae4cf9a..acc32b79807b9787e95fc07243c9f622dae26b89 100644 (file)
@@ -97,15 +97,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
     # -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}")
index 624d5937dcc32adbd0d929d2a77e5f8b8d6a130e..032cbfa8def0a144f7124c621686cdcb15c33042 100644 (file)
@@ -1,4 +1,4 @@
-// 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.
 //
@@ -36,9 +36,7 @@ public:
 
   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;