* lib/copy-file.c: Add #pragma GCC diagnostic.
-2023-05-24 Bruno Haible <bruno@clisp.org>
+2023-05-26 Bruno Haible <bruno@clisp.org>
+
+ copy-file: Silence gcc warnings.
+ * lib/copy-file.c: Add #pragma GCC diagnostic.
+
+2023-05-26 Bruno Haible <bruno@clisp.org>
diffseq: Silence gcc warning.
* lib/diffseq.h: Add #pragma GCC diagnostic.
return err;
}
+/* Silence gcc warnings "this statement may fall through".
+ gcc cannot know that error(), when invoked with a non-zero status argument,
+ will not return. */
+#if __GNUC__ >= 7
+#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
+#endif
+
void
copy_file_preserving (const char *src_filename, const char *dest_filename)
{