popen: fix 'may be clobbered' compiler warning
I guess a compiler assumes that the code inside vfork may use the stack slot that corresponds the variable and so clobber it. The recent commit 07a07b3c ('popen: decouple logger fd from stderr') adds read from this variable after vfork() in the parent process. The warning is produced on RelWithDebInfo build with LTO enabled on GCC 9.2.0 (locally) and on GCC 8.3.0 (in CI). Part of #4031 Acked-by:Cyrill Gorcunov <gorcunov@gmail.com>
Please register or sign in to comment