diff --git a/folly/Subprocess.cpp b/folly/Subprocess.cpp index 308e448783f..671553edb47 100644 --- a/folly/Subprocess.cpp +++ b/folly/Subprocess.cpp @@ -313,8 +313,11 @@ void Subprocess::spawn( // With -Wclobbered, gcc complains about vfork potentially cloberring the // childDir variable, even though we only use it on the child side of the // vfork. + FOLLY_PUSH_WARNING +#if !defined(__clang__) FOLLY_GCC_DISABLE_WARNING("-Wclobbered") +#endif void Subprocess::spawnInternal( std::unique_ptr argv, const char* executable,