From 631cf64bc1d8306e011ef39f60b8cb6de91bd271 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 18 Feb 2020 13:44:48 +0100 Subject: Move implementation of into a C file file_change_detection_for_stat partially initialize struct file_change_detection in some cases, when the size member alone determines the outcome of all comparisons. This results in maybe-uninitialized compiler warnings in case of sufficiently aggressive inlining. Once the implementation is moved into a separate C file, this kind of inlining is no longer possible, so the compiler warnings are gone. --- io/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io/Makefile') diff --git a/io/Makefile b/io/Makefile index 04c4647..cf380f3 100644 --- a/io/Makefile +++ b/io/Makefile @@ -55,7 +55,7 @@ routines := \ posix_fadvise posix_fadvise64 \ posix_fallocate posix_fallocate64 \ sendfile sendfile64 copy_file_range \ - utimensat futimens + utimensat futimens file_change_detection # These routines will be omitted from the libc shared object. # Instead the static object files will be included in a special archive -- cgit v1.1