diff --git a/indra/llcommon/llprocess.cpp b/indra/llcommon/llprocess.cpp
index 7ccbdeed013e2f5d2d310a3c453ba58f1cc7486a..de71595f16b7310cf87c24c91e4c4c03cccf2e54 100644
--- a/indra/llcommon/llprocess.cpp
+++ b/indra/llcommon/llprocess.cpp
@@ -120,7 +120,9 @@ LLProcess::LLProcess(const LLSDOrParams& params):
 		// As of 2012-02-02, we only expect this to be implemented on Windows.
 		// Avoid spamming the log with warnings we fully expect.
 		ll_apr_warn_status(ok);
-# endif // LL_WINDOWS
+#else   // ! LL_WINDOWS
+		(void)ok;                   // suppress 'unused' warning
+# endif // ! LL_WINDOWS
 #else
 		LL_WARNS("LLProcess") << "This version of APR lacks Linden apr_procattr_autokill_set() extension" << LL_ENDL;
 #endif