]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix build error for TemporaryFile with GCC 4.8
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 3 Oct 2020 17:37:56 +0000 (19:37 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Oct 2020 06:54:51 +0000 (08:54 +0200)
src/TemporaryFile.hpp

index 493445bb4adc2171706670163f5a039c2de89bfc..0538d9a40e8b246fc9aaa2db55a01fd4f11fe422 100644 (file)
@@ -36,7 +36,9 @@ public:
 
   TemporaryFile(TemporaryFile&& other) noexcept = default;
 
-  TemporaryFile& operator=(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;
 
   // The resulting open file descriptor in read/write mode. Unset on error.
   Fd fd;