mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Move implementation of <file_change_detection.h> 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.
This commit is contained in:
@ -583,7 +583,7 @@ __resolv_conf_load (struct __res_state *preinit,
|
||||
if (ok && change != NULL)
|
||||
/* Update the file change information if the configuration was
|
||||
loaded successfully. */
|
||||
ok = file_change_detection_for_fp (change, fp);
|
||||
ok = __file_change_detection_for_fp (change, fp);
|
||||
|
||||
if (ok)
|
||||
{
|
||||
|
Reference in New Issue
Block a user